.exec
from PIL import Image, ImageFilter
import io
im = io.BytesIO()
await client.download_file(reply, im)
im =
Image.open(im)
w, h = im.size
_min, _max = min(w, h), max(w, h)
bg = im.crop(((w-_min)//2, (h-_min)//2, (w+_min)//2, (h+_min)//2))
bg = bg.filter(ImageFilter.GaussianBlur(5))
bg = bg.resize((_max, _max))
w1, h1 = bg.size
bg.paste(im, ((w1-w)//2,(h1-h)//2))
img = io.BytesIO()
img.name = "im.png"
bg.save(img)
img.seek(0)
await client.send_file(message.to_id, img)