update dependencies and python to 3.12.3 (#95)

* update dependencies and python to 3.12.3

* fix tests
This commit is contained in:
Dmitry Afanasyev
2024-04-20 19:16:37 +03:00
committed by GitHub
parent 3e7bbb6f60
commit b6a0427b1b
8 changed files with 561 additions and 356 deletions

View File

@@ -70,7 +70,7 @@ async def help_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> No
async def bug_report(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
"""Send a message when the command /bug-report is issued."""
if not update.effective_message:
if not update.effective_message or not settings.ADMIN_CHAT_ID:
return
async with get_bot(settings.TELEGRAM_API_TOKEN) as bot:
await bot.send_message(chat_id=settings.ADMIN_CHAT_ID, text=f"Bug report from user: {update.effective_user}")