-
Notifications
You must be signed in to change notification settings - Fork 1
/
f.py
31 lines (22 loc) · 780 Bytes
/
f.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from os import remove
from random import randint
from pyrogram import Client, filters
from utils.misc import modules_help, prefix
from utils.scripts import import_library
wget = import_library("wget")
def download_sticker(url):
wget.download(url, "f.webp")
@Client.on_message(filters.command(["f"], prefix) & filters.me)
async def random_stiker(client, message):
await message.delete()
random = randint(1, 63)
index = f"00{random}" if random < 10 else f"0{random}"
sticker = (
f"https://www.chpic.su/_data/stickers/f/FforRespect/FforRespect_{index}.webp"
)
download_sticker(sticker)
await client.send_sticker(chat_id=message.chat.id, sticker="f.webp")
remove("f.webp")
modules_help["f"] = {
"f": "Send f to pay respect",
}