bot.error Module

This module contains functions for handling errors.

bot.error.handle_error(update, context)

Informs the originator of the update that an error occurred and forwards the traceback to the admin.

Parameters
  • update (object) – The Telegram update.

  • context (CallbackContext) – The callback context as provided by the dispatcher.

Return type

None