S
S
szjyakgf2022-04-10 15:58:42
Python
szjyakgf, 2022-04-10 15:58:42

How to get the value of a message with a replay to another?

Bot on aiogram, works in chats.
For example, I sent the /test command:

@dp.message_handler(commands=['test'])
async def players(message: types.Message):
    await message.reply('Твое число:')

After that, I throw a replay on the bot's message (namely, a replay, not just the next message) and write, for example, 42. After that, the bot should change that message to: Your number: 42

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