Resolve Telegram Username to Entity ID
resolve_usernameResolve a public Telegram username into its entity ID and object type (User, Channel, Group). Use this before ID-based tools when you only have a username handle.
Instructions
Resolve a public @username to its underlying Telegram entity ID and object type (User, Channel, Group). Use before calling ID-based tools when only a username handle is known.
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": {
"username": "<username>"
},
"name": "resolve_username"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Optional account label for multi-account environments. If omitted in single-mode, the default account is used. In multi-mode without an account, read-only tools fan out across all configured accounts. | |
| username | Yes | Telegram username handle (without the leading '@' symbol). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |