Closed Karimium0 closed 1 year ago
What exactly is not working? Debug
What exactly is not working? Debug
Message.reply_to seems to be a none type rather than a true or false, the same snippet is used across a lot of codes that are using the library yet it's not functioning
No True/False. Message on success.
No True/False. Message on success.
as you see, i still get None type despite it being a reply, I don't get the value as a message
Apparently the bot was added after the message was sent. thought the bots had access to messages or at least are given info once a reply is made. It's solved. Thanks ❤️
Please answer these questions before submitting your issue. Thanks!
here is a code snippet i was trying out,
@bot.message_handler(commands=['reveal']) def handle_message(message): if message.reply_to_message: replied_id = message.reply_to_message.message_id bot.reply_to(message, f"The replied-to message's ID is: {replied_id}") else: bot.reply_to(message, "You need to reply to a message to use the /reveal command.")
It seems like the bot cannot recognize if a message was a reply. Things i have tried: