1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] I can't figure out why the bot doesn't respond to commands [closed]

Discussão em 'Python' iniciado por Stack, Setembro 13, 2025.

  1. Stack

    Stack Membro Participativo

    The bot reads TOKEN and worked before. But after a week of not dealing with its bugs and decided to add the /help, /spam functions, I encountered a problem: the bot sees messages, but reads them as "not handled" and does not respond to any of the commands.

    Please take a look and give a tip or hint on what the reason might be. I will attach some logs from the bot:

    2025-09-13 13:22:31,791 [ERROR] root: BOT_BOOTED_PID=7880
    2025-09-13 13:22:32,160 [INFO] moderator_bot: Initialization complete, ready to start polling
    2025-09-13 13:22:32,161 [INFO] moderator_bot: Starting polling (async)
    2025-09-13 13:22:32,162 [INFO] aiogram.dispatcher: Start polling
    2025-09-13 13:22:32,365 [INFO] aiogram.dispatcher: Run polling for bot @saltyxa_adm_bot id=XXX - 'XXX'
    2025-09-13 13:22:32,434 [INFO] root: DUMP MID: event type=<class 'aiogram.types.update.Update'>
    2025-09-13 13:22:32,435 [INFO] root: DUMP MID: handler returned sentinel.UNHANDLED
    2025-09-13 13:22:32,435 [INFO] aiogram.event: Update id=730922990 is not handled. Duration 0 ms by bot id=XXX
    2025-09-13 13:22:32,435 [INFO] root: DUMP MID: event type=<class 'aiogram.types.update.Update'>
    2025-09-13 13:22:32,436 [INFO] root: DUMP MID: handler returned sentinel.UNHANDLED
    2025-09-13 13:22:32,436 [INFO] aiogram.event: Update id=730922991 is not handled. Duration 0 ms by bot id=XXX
    2025-09-13 13:22:32,436 [INFO] root: DUMP MID: event type=<class 'aiogram.types.update.Update'>
    2025-09-13 13:22:32,437 [INFO] root: DUMP MID: handler returned sentinel.UNHANDLED
    2025-09-13 13:22:32,437 [INFO] aiogram.event: Update id=730922992 is not handled. Duration 0 ms by bot id=XXX

    Continue reading...

Compartilhe esta Página