I'm currently developing a telegram bot with python-telegram-bot. I want to be able to get the message, that was replied to ForceReply. The expected flow is this:
- User sends /start command
- Bot sends a message with some information. The message is linked with ForceReply
- User replies to the message
- Handle and operate the message.
How could I achieve the expected result? Thanks
initial_message = "Hi... Please reply to this message to proceed to the next step..."
def start (update: Update, context: CallbackContext):
chat_id = update.message.chat_id
print(update.message.from_user.username)
context.bot.send_message(chat_id=chat_id, text=initial_message, reply_markup=ForceReply())