Answer the question
In order to leave comments, you need to log in
How to send your sticker in telethon?
@client.on(events.NewMessage())
async def normal_handler(event):
message = event.message.to_dict()['message']
chat_id = event.message.to_dict()['peer_id']['user_id']
stick = "CAACAgIAAx0CUyxVsAACEmdh5..."#айди стикера
msg = message.split(maxsplit = 1)
if chat_id == anon_chat_id1:
if msg[0].lower() == 'да':
await client.send_sticker(chat_id, stick)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question