update dependencies (#86)

* update dependencies

* format code
This commit is contained in:
Dmitry Afanasyev
2024-02-01 22:29:47 +03:00
committed by GitHub
parent 7c51a775c6
commit a18c94882a
9 changed files with 494 additions and 542 deletions

View File

@@ -70,11 +70,11 @@ def check_user_is_banned(func: Any) -> Any:
@wraps(func)
async def wrapper(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
if not update.effective_message:
logger.error('no effective message', update=update, context=context)
logger.error("no effective message", update=update, context=context)
return
if not update.effective_user:
logger.error('no effective user', update=update, context=context)
logger.error("no effective user", update=update, context=context)
await update.effective_message.reply_text(
"Бот не смог определить пользователя. :(\nОб ошибке уже сообщено."
)