PB
Size: a a a
PB
PB
S
S
S
к
from itertools import chain
@client.on(events.NewMessage(outgoing=True))
async def dice(e):
if '!dice' in e.raw_text:
d = None
wanted_dice = int(e.raw_text.split(" ")[1])
if wanted_dice in chain(range(-1), range(1, 7, 1)):
while d is None or d.media.value != wanted_dice:
if d: await d.delete()
d = await client.send_file(e.chat_id, InputMediaDice(emoticon='🎲'))
thx to @tWiTfAcEMV
S
PB
JD
S
MV
️️
JD
MV
S
S
S
JD
S