nickoala / telepot

Python framework for Telegram Bot API
MIT License
2.43k stars 478 forks source link

How to drop last unread messages in telegram python #417

Open essaghirsalhi opened 5 years ago

essaghirsalhi commented 5 years ago

hello guys how can i like skip unread messages whenever i start the bot, it replies to older messages, and i want to skip that i want it to reply only to the new messages any ideas ?

codingsett commented 5 years ago

You can have the bot assume all messages that come through for the first 3-5 seconds . Alternatively you can compare the unix timestamp of the messages and only approve the messages that come after the time you started the bot

essaghirsalhi commented 5 years ago

and how can i do that? i'm like new to this i dont know that much