Bots de Telegram2 minutos de lectura

Deploy an aiogram 3 Telegram bot with a polling worker

Deploy an aiogram 3 project from requirements.txt and verify that the dispatcher loads your routers and receives Telegram updates.

Start your aiogram entry file

Choose the Python polling profile on Hosting de bots de Telegram. Upload the package folders, requirements.txt and your entry file. Pin the aiogram 3 version you tested, set MAIN_FILE to the Python entry, and save TELEGRAM_BOT_TOKEN in Variables.

If the project starts with python -m mybot on your computer, use that command for RUN_COMMAND with the dependencies installed by your start command. Keep the package directory at the project root. Start one poller for the token.

Verify that the dispatcher includes your router

When adding a new router, import it and include it on the dispatcher before starting polling. A connected bot can appear quiet when its handler module exists on disk but is never registered. The following probe works on a dispatcher you already initialize.

Register an aiogram probe
from aiogram import Router
from aiogram.filters import Command

probe = Router()

@probe.message(Command("hostingcheck"))
async def hosting_check(message):
    await message.answer("aiogram router loaded")

# Run this before awaiting dp.start_polling(bot).
dp.include_router(probe)

Enviar /hostingcheck in a private chat. If other commands respond but this one does not, check router registration order and any broader message filter that could consume the update first. aiogram Router reference.

Distinguish routing errors from polling conflicts

If Telegram reports a polling conflict, stop the other worker or check whether a webhook still owns delivery. A router change cannot resolve a second consumer. If your bot uses an FSM with in-memory state, plan for that state to reset during a restart and move it to a persistent backend where users need to resume a flow.

aiogram long-polling guide y switching a Bothosting Telegram bot to polling.