Creating a Telegram bot token
This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.
Distilled from Telegram’s own documentation: Bot features — BotFather, From BotFather to ‘Hello World’ — Obtain Your Bot Token, and the Bot API reference. Retrieved 2026-07-03.
There is no OAuth for Telegram bots. The token @BotFather issues when the bot is created is the credential itself, used directly against the Bot API.
- Open a chat with @BotFather in any Telegram client.
- Send the
/newbotcommand. “@BotFather will ask you for a name and username, then generate an authentication token for your new bot.” - Choose the bot’s name — the display name shown in contact details; it can be changed later.
- Choose the bot’s username: “Usernames are 5-32 characters long and not case sensitive – but may only include Latin characters, numbers, and underscores. Your bot’s username must end in ‘bot’” (e.g.
tetris_botorTetrisBot). Unlike the name, the username cannot be changed later. - Copy the token BotFather returns (shaped like
110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw). “Keep your token secure and store it safely, it can be used by anyone to control your bot.”
Operational notes:
- Every API request embeds the token in the URL path —
https://api.telegram.org/bot<token>/METHOD_NAME— over HTTPS; it is not sent as a header or query parameter (Making requests). - Verify a token by calling
getMe: “A simple method for testing your bot’s authentication token. Requires no parameters.” - If the token is compromised or lost, send
/tokento @BotFather to generate a new one (Generating an authentication token); the token “can also be revoked at any time via @BotFather” (tutorial). - Flood limits (Bots FAQ): about one message per second per chat, at most 20 messages per minute in a group, and about 30 messages per second for bulk broadcasts. Exceeding them yields 429 errors whose response body carries the wait time in a
retry_afterfield (ResponseParameters).
Connect it to Publicus
Section titled “Connect it to Publicus”Open Connections under Credentials, choose Telegram, and pick Telegram bot token (BotFather). Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.
See also: Telegram in the catalog.
This guide is maintained by Publicus and published under CC BY 4.0.