show logs inside the telegram bot

This commit is contained in:
andrea
2025-07-26 21:58:38 +02:00
parent a9cb58100f
commit 269724345d
3 changed files with 23 additions and 4 deletions

5
bot.py
View File

@@ -8,7 +8,7 @@ from telegram import ReplyKeyboardRemove
from utils import logs as _log
from entities import arena as _arena
from bot_libs import upstart as _bot_upstart
from bot_libs import special_commands as _bot_special_cmd
from bot_libs import syms as _botsyms
from bot_libs import commands_handling as _bot_commands
@@ -63,7 +63,8 @@ async def bot_commands(update, context):
if waiting_for_seconds:
return await _bot_commands.get_seconds_from_input(context, update, chat_id, text)
if text == 'upstart': return await _bot_upstart.update_bot(update, context)
if text == 'upstart': return await _bot_special_cmd.update_bot(update, context)
if text == 'logs': return await _bot_special_cmd.show_logs(update, context)
_log.log_debug(f'bot_command: {chat_id} - sent this text: {text}')
await update.message.reply_text(_botsyms.WIP_MSG)