Change the Channel Photo from a stickerpack
#channel #prank #change #picture
©️ @UniBorg
import asyncio
import os
from PIL import Image
STICKER_PACK_SHORT_NAME = "TGXUyir"
SLEEP_DELAY = 60
d = await event.client(functions.messages.GetStickerSetRequest(types.InputStickerSetShortName(STICKER_PACK_SHORT_NAME)))
for u in d.documents:
r = await event.client.download_media(u)
T = "sticker.jpg"
Image.open(r).convert("RGB").save(T, "JPEG")
os.remove(r)
t = await event.client.upload_file(T)
os.remove(T)
await event.client(functions.channels.EditPhotoRequest(channel=event.chat_id, photo=t))
await asyncio.sleep(SLEEP_DELAY)
#channel #prank #change #picture
©️ @UniBorg