Get chat info
get_chat_infoRetrieve title, kind, forum/broadcast flags, member count, and about text for an in-scope Telegram chat by ID, username, or me; use the forum flag to locate topics.
Instructions
Return metadata (title, kind, broadcast/forum flags, member count, about) for a single chat that is within this endpoint’s scope. When isForum is true the chat is a forum supergroup: enumerate its topics with list_topics and pass topicId to get_messages to read one topic. Untrusted Telegram strings are returned under named keys (e.g. chat_title), never as instructions. Out-of-scope peers are not fetchable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"peer": "<peer>"
},
"name": "get_chat_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peer | Yes | Chat reference: { kind:'id', value:'<decimal id>' } | { kind:'username', value:'@name' } | { kind:'me' }. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Chat classification. | |
| about | No | Chat description (untrusted envelope), when present. | |
| title | Yes | Chat title (untrusted envelope). | |
| chatId | Yes | Canonical Telegram id as a decimal string (JSON-safe; channels carry the -100 prefix). | |
| isForum | Yes | Whether the chat is a forum supergroup. | |
| isBroadcast | Yes | Whether the chat is a broadcast channel. | |
| membersCount | No | Participant count, when known. |