How to get a Telegram Chat ID
When you create a schedule in SquadOS and pick Telegram as the delivery channel, the system asks for a Chat ID. This number tells the bot exactly where to send the agent’s response: your private chat with the bot, a group, or a channel.
This guide shows how to find that ID in just a few minutes.
What is the Chat ID
Section titled “What is the Chat ID”Every Telegram chat has a unique numeric identifier:
- Private chat (you talking to the bot): positive number, e.g.
123456789 - Group: negative number, e.g.
-987654321 - Supergroup or channel: long negative number, e.g.
-1001234567890
SquadOS accepts any of the three — just paste the exact number.
Prerequisite
Section titled “Prerequisite”Before anything, the bot that SquadOS uses needs access to the target chat:
- Private chat: you must have started a conversation with the bot (send
/startat least once). - Group: add the bot to the group.
- Channel: add the bot as a channel admin.
Without this, even with the right Chat ID, Telegram blocks delivery.
Method 1 — Private chat (most common)
Section titled “Method 1 — Private chat (most common)”The fastest way is to use a public diagnostic bot.
-
On Telegram, open a chat with @userinfobot.
-
Send any message (e.g.
/start). -
The bot replies with your data, including a line like:
Id: 123456789 -
That number is your Chat ID. Copy it and paste it into the Telegram Chat ID field in the schedule.
Method 2 — Group
Section titled “Method 2 — Group”- Add the bot @userinfobot to your group (temporarily).
- Send any message in the group.
- The bot replies with the group’s data, including the
Id(negative number). - Copy that number and paste it into the schedule.
- You can remove @userinfobot from the group afterwards — keep only the SquadOS bot.
Method 3 — Channel
Section titled “Method 3 — Channel”Channels don’t accept messages from regular users, so the method is slightly different:
- Forward any message from the channel to @userinfobot in a private chat.
- The bot shows the original channel’s data, including the
Id(starts with-100). - Copy the full number (including the
-100prefix) and paste it into the schedule. - Confirm that the SquadOS bot is an admin of the channel.
Method 4 — Telegram Web (quick alternative)
Section titled “Method 4 — Telegram Web (quick alternative)”If you prefer not to use an external bot:
- Go to web.telegram.org and open the target chat.
- Look at the URL in your browser. Examples:
#123456789→ private chat, ID123456789#-987654321→ group, ID-987654321- For supergroups/channels, prefer Method 3 (the Web URL doesn’t always show the full
-100prefix).
Using it in the schedule
Section titled “Using it in the schedule”With the Chat ID in hand:
- In SquadOS, open the agent you want to schedule.
- Go to Triggers → Schedules → Add Schedule.
- Under Delivery channel, pick Telegram.
- Paste the Chat ID into the field.
- Save.
Done. When the schedule fires, the agent’s response goes straight to that chat.
Common issues
Section titled “Common issues”- “chat not found”: the bot doesn’t have access to the chat yet. Send
/start(private) or add the bot to the group/channel. - “bot was blocked by the user”: you blocked the bot. Unblock it and send
/startagain. - Nothing arrives, no error either: make sure you pasted the full ID, including the
-and the-100prefix if it’s a supergroup/channel.