🐛 Use v13 signature for error handler
This commit is contained in:
parent
961a9ced76
commit
f16bf317b5
1 changed files with 5 additions and 3 deletions
6
utils.py
6
utils.py
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
from telegram import Update
|
||||||
|
from telegram.ext import CallbackContext
|
||||||
|
|
||||||
from internationalization import _, __
|
from internationalization import _, __
|
||||||
from mwt import MWT
|
from mwt import MWT
|
||||||
|
@ -75,9 +77,9 @@ def display_color_group(color, game):
|
||||||
emoji='💛')
|
emoji='💛')
|
||||||
|
|
||||||
|
|
||||||
def error(bot, update, error):
|
def error(update: Update, context: CallbackContext):
|
||||||
"""Simple error handler"""
|
"""Simple error handler"""
|
||||||
logger.exception(error)
|
logger.exception(context.error)
|
||||||
|
|
||||||
|
|
||||||
def send_async(bot, *args, **kwargs):
|
def send_async(bot, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue