M
M
mr_good_cat2021-04-14 15:30:28
Telegram
mr_good_cat, 2021-04-14 15:30:28

How can I find out the id of the message I'm replying to?

How to return the id of the message to which I am replying to the bot at the time of the reply?
Recently started learning aiogram. Surely there is a simple solution, but the second day I'm already tinkering.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Altry, 2021-04-14
@Altry

Name the message with some variable , then just output the .message_id variable.
For example :

x = await message.answer('text')
print(x.message_id)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question