the-guard-bot icon indicating copy to clipboard operation
the-guard-bot copied to clipboard

Mark old updates with ctx.oldUpdate

Open MKRhere opened this issue 4 years ago • 0 comments

  • Hits Telegram's getMe endpoint on bot start, before bot.launch()
  • Stores the date header of getMe's response
  • Marks any update older than the stored date with ctx.oldUpdate = true, otherwise false

Useful for plugins that don't want to retroactively act on old updates if bot was down

MKRhere avatar Oct 14 '20 13:10 MKRhere