Invoke a raw MTProto method
invoke_mtprotoCall any Telegram API method by qualified name, auto-resolving peer fields. For when no dedicated tool fits.
Instructions
Call any Telegram API method by its qualified name (e.g. messages.SendMessage, channels.GetFullChannel, stories.GetAllStories). String values for fields named peer/channel/user/fromPeer/toPeer/bot/chat are auto-resolved to InputPeer/InputUser. Use this only when no dedicated tool fits — the API surface is huge and there are no per-method safety checks.
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": {
"method": "<method>"
},
"name": "invoke_mtproto"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | Qualified MTProto method/class name, e.g. "messages.SendMessage" | |
| params | No | Parameters object for the method constructor | |
| accountId | No |