M
M
MrSotariz2018-06-25 20:58:57
Python
MrSotariz, 2018-06-25 20:58:57

Telethon reaction to inline buttons, how?

Tell me how to implement a reaction to inline buttons, I know in advance under what message the button will be and with what text - it is necessary to emulate a click.

@client.on(events.NewMessage(chats=config.username, incoming=True))
def my_event_handler(event):
    if 'some text' in event.raw_text:

what is needed to "select" the button "button1"?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Irina, 2018-08-17
@MrSotariz

I think it's easier for you to read this article. https://groosha.gitbooks.io/telegram-bot-lessons/c...

D
Daniel, 2022-01-23
@DanielWorker

https://stackoverflow.com/questions/57268556/how-d...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question