Resolved: How to reply a massage in Telepot?

In this post, we will see how to resolve How to reply a massage in Telepot?


I am making a telegram bot with telepot , but I don’t know how to do it. I tried many solutions, but I didn’t get an answer and the bot only sent simple messages without reply! My source is supposed to run on the pythoneverywhere site, so I have the limitation of using other libraries like telethon.
here is my code :
I tried : bot.sendMessage(chat_id, text=”Reply From Bot!” ,reply_to_message_id=massage)
and I expected : Reply From Bot!

Best Answer:

Instead of using massage you can use msg['message_id']
And also just mentioning; it seems like telepot is no longer maintained by developers as mentioned in telepot’s GitHub repository. It would be better to switch into a library like python-telegram-bot

If you have better answer, please add a comment about this, thank you!