Resolve chat
Tool ID: telegram_resolve_chat
Summary
Maps a human chat reference to the numeric chat_id Telegram needs for sending.
When to use it
- You know a channel as
@mybrand_newsbut not the id. - You want the id of a group the bot has already seen, by its exact title.
- You are about to send or reply and need a stable
chat_id.
What you need
| Requirement | Required? |
|---|---|
| Metraclick connection | Yes |
| Tool enabled for your account | Yes |
| Telegram credential | Yes |
Parameters
| Parameter | Required? | Description |
|---|---|---|
chat |
Yes | Numeric id, @username, or exact title of a chat the bot has already seen |
What you get back
chat_id, chat type, title, and username when available.
Example prompts
Resolve the Telegram chat @mybrand_news and remember the chat id.
What is the chat id for the Marketing group my bot is in?
Tips
- Titles only work for chats the bot has already received updates from.
- In groups, privacy mode may limit what the bot sees until you change
/setprivacyin BotFather.