Skip to content

setLastUpdateId

Eric Damian edited this page Feb 16, 2021 · 1 revision

setLastUpdateId Method:

Use this method to set lastUpdateId attribute.

Example

from python_telegram_api import telegram_bot_api

bot = telegram_bot_api.TelegramBotApi('xxxxxxxxxx:yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy')
bot.setLastUpdateId(919631922)
print(bot.getLastUpdateId())

>>> 919631922
Clone this wiki locally