P
P
Politochka2021-07-25 18:11:20
Python
Politochka, 2021-07-25 18:11:20

How to find out the caption of a video that a user replied to?

Let's say the bot sent a video, how to find out its caption through reply?
For text, something like this would work:

@bot.message_handler(content_types=["text"])
def messages(message):
    if(message.reply_to_message != None):
        bot.send_message(id,  message.text)


how to do this for video?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-07-25
@Politochka

Print message.reply_to_messageout, see what fields are there.
message.reply_to_message.caption

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question