Create a Telegram bot and find your chat ID
Free, instant notifications on your phone — the easiest messaging app to automate.
4 min read
1. Create the bot
- In Telegram, open a chat with @BotFather.
- Send /newbot, then choose a name and a username ending in "bot".
- BotFather replies with an access token. Keep it secret.
- In n8n, create a Telegram credential and paste the token.
2. Find your chat ID
- Send any message to your new bot.
- Open this address in your browser, with your token in place of YOUR_TOKEN:
- Find "chat":{"id": … } in the response — that number is your chat ID.
https://api.telegram.org/botYOUR_TOKEN/getUpdatesGroups and channels
- Group: add the bot to the group, send a message, and check getUpdates again. Group IDs are negative numbers.
- Channel: add the bot as an admin and use @yourchannelname as the chat ID.
Good to know
- Only one app can receive updates for a bot at a time — use a separate bot for each Telegram Trigger flow.
- If your token leaks, send /revoke to @BotFather to get a new one.