P
P
Politochka2021-07-25 12:57:44
Python
Politochka, 2021-07-25 12:57:44

How to get the id of the message the user replied to?

How to get the id of the message the user replied to? (telebot)
That is, you need to understand whether the user answered the message and the id of the message to which he replied

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2021-07-25
@Politochka

https://core.telegram.org/bots/api#message
Check for availabilityreply_to_message

@bot.message_handler(func=lambda message: True, content_types=['text'])
def command_default(m):
    if m.reply_to_message:
        pass

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question