D
D
Dru9p0dru92022-01-16 23:33:18
Python
Dru9p0dru9, 2022-01-16 23:33:18

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 question

Ask a Question

731 491 924 answers to any question