bot.error_handler Module#
The module contains the error handler.
- async bot.error_handler.error_handler(update, context)#
Log the error and send a Telegram message to notify the admin.
- Parameters:
update (
object
) – The incoming update. Not necessarily a Telegram update.context (
telegram.ext._callbackcontext.CallbackContext
) – The context as provided by thetelegram.ext.Dispatcher
.
- Return type: