dariotarantini / vgram

Telegram Bot library written in V.
MIT License
144 stars 19 forks source link

Bot response on already responded last message on startup #12

Open ArtemkaKun opened 2 years ago

ArtemkaKun commented 2 years ago

The problem can be reproduced with the example code too.

If I copy-paste example code to example.v file, then go to the console and run v run example.v - a bot will start successfully. After I print a command "/start" - I will get an expected response. But if then I will terminate the bot process via Ctrl + C and start it one more time - it will immediately respond on the last /start command one more time.

image

dariotarantini commented 2 years ago

yep, thats happen because the library load also the last update. maybe the client should ignore it. i will update examples