Skip to content

getLastUpdateId

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

getLastUpdateId Method:

Use this method to get lastUpdateId attribute.

Example

from python_telegram_api import telegram_bot_api

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

>>> 919631952
Clone this wiki locally