Get a message's link
telegram_message_linkGenerate t.me links for a Telegram message or an entire chat. Handles public and private chats, producing the /c/ form when no username is available.
Instructions
Build the t.me link for one message, or for a whole chat when messageId is omitted. Works for public and private chats — a private chat yields the /c/ form, which needs no username.
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": {
"chat": "<chat>"
},
"name": "telegram_message_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | ||
| messageId | No |