Host a Telegram bot
Keep a Telegram bot online without first deciding whether the code should be hosted as a poller or webhook. Tokay detects the shape and runs it as the Service type it already expects.
Last updated
Start with the bot you already wrote
You can use python-telegram-bot, aiogram, Telegraf, grammY, or plain HTTP calls without changing libraries for the platform. Paste the code or push the repository, and Tokay detects the language, packages, process type, and token environment variable.
You provide the bot token as a secret. Tokay encrypts it in storage and supplies it to the code at runtime. A token found in the source is flagged so you can move it out of the files.
Polling and webhooks both get durable hosting
Tokay keeps a polling bot running as a background Service and restarts it after a crash. A webhook bot receives an HTTPS URL for Telegram's setWebhook, plus a request log with payload inspection and replay.
Incident and recovery email report worker failures, while live logs show connection and message activity.
New bot work stays beside the original Service
Adding a database or scheduled cleanup does not require another platform. Tokay creates supported databases from the connections in the code, and scheduled Services can share the bot's secrets and data in the same Project.
Your AI agent can finish the Telegram connection
A coding agent like Claude Code or Codex can submit the source without guessing whether it polls or receives webhooks. Through Tokay's GraphQL API, it can set the write only token you provide, deploy the detected Service, register the returned URL with setWebhook when needed, and read the logs to verify the bot.
Point your agent to app.tokay.io/llms.txt for the deployment protocol.
Tokay has a very generous free tier with no credit card. Get started.