forked from Den4ikSuperOstryyPer4ik/Astro-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathвахуи_пон.py
56 lines (47 loc) · 1.81 KB
/
вахуи_пон.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# _ __ __ _ _
# /\ | | | \/ | | | | |
# / \ ___| |_ _ __ ___ | \ / | ___ __| |_ _| | ___ ___
# / /\ \ / __| __| '__/ _ \| |\/| |/ _ \ / _` | | | | |/ _ \/ __|
# / ____ \\__ \ |_| | | (_) | | | | (_) | (_| | |_| | | __/\__ \
# /_/ \_\___/\__|_| \___/|_| |_|\___/ \__,_|\__,_|_|\___||___/
#
# © Copyright 2022
#
# https://t.me/Den4ikSuperOstryyPer4ik
# and
# https://t.me/ToXicUse
#
# 🔒 Licensed under the GNU AGPLv3
# https://www.gnu.org/licenses/agpl-3.0.html
# meta developer: @AstroModules
# scope: hikka_only
# scope: hikka_min 1.3.0
import random
from telethon.tl.types import Message
from .. import loader
@loader.tds
class ВахуиПонMod(loader.Module):
"""пон и вахуи"""
strings = {"name": "ВАХУИ-ПОН", "pon": "пон", "vahui": "вахуи"}
@loader.command()
async def понcmd(self, message: Message):
"""--> пон"""
reply = await message.get_reply_message()
m = random.choice(await self.client.get_messages("@PON_STICKS", limit=100))
if reply:
await self.client.send_message(message.chat_id, file=m, reply_to=reply)
else:
await message.respond(file=m)
if message.out:
await message.delete()
@loader.command()
async def вахуиcmd(self, message: Message):
"""--> вахуи"""
reply = await message.get_reply_message()
m = random.choice(await self.client.get_messages("@VAHUI_STICKS", limit=100))
if reply:
await self.client.send_message(message.chat_id, file=m, reply_to=reply)
else:
await message.respond(file=m)
if message.out:
await message.delete()