greyblake / telebot

Ruby client for Telegram bot API
MIT License
30 stars 6 forks source link

Mark updates as confirmed using offset + 1 as described in Bot API #1

Closed byrney closed 8 years ago

byrney commented 9 years ago

Each time my bot restarted it always got the last message again. The Bot API can mark updates as confirmed, in which case they will not be redelivered but only when they are strictly less than the offset.

I made the change recommended in the Api Docs and pass last_update + 1 as the offset.

greyblake commented 8 years ago

@byrney I appolize for the delay. Thanks for contribution, please check out version 0.1.1.