telegram_send_message
Telegram · macOS · Windows
Effect: verzenden. Status: voorwaardelijk beschikbaar.
‘Voorwaardelijke beschikbaarheid’ betekent dat het hulpmiddel kan afhangen van versie, platform, machtigingen, account of configuratie. Het is niet in elke installatie actief.
macOS
Doel
Verstuurt een Telegram-bericht vanuit je eigen account naar één chat. SCHRIJFbewerking met een voorbeeld: de eerste aanroep (confirm=false) geeft een voorbeeld terug en verstuurt NIETS; toon het aan de gebruiker en roep pas opnieuw aan met confirm=true nadat die akkoord is. Het voorbeeld noemt de ontvanger vanuit Telegram zelf (chat_name is de naam die Telegram voor chat_id heeft; chat_name_unresolved wanneer de id niet bij de recente chats van het account staat, of wanneer het lezen van dat account in zijn rij van Mijn apps is uitgezet), nooit uit wat de aanroeper doorgaf. chat_id MOET uit telegram_list_chats komen — verzin er nooit een. Eén bericht per aanroep; geen bulkverzending.
Vereiste invoer
chat_idmessage
De namen blijven exact zoals het hulpmiddel ze vereist. De canonieke technische definities in het Engels staan in het uitklapbare schema hieronder.
Machtigingen en bevestiging
Het schema bevat een expliciete bevestigingsparameter. Controleer het voorbeeld en autoriseer de echte bewerking volgens het platformcontract.
- Gebruik uitsluitend de apps, accounts en bronnen waarvoor de gebruiker op dit platform toestemming heeft gegeven. Raadpleeg de platformspecifieke beschrijving van deze tool voor de verbindings- en toestemmingsvereisten; deze catalogus veronderstelt geen aanvullende OAuth-bereiken of OS-rechten.
Canoniek technisch schema in het Engels — macOS
{
"properties": {
"account": {
"description": "Which linked Telegram account to use: its label or id from telegram_list_accounts. Leave it out to use the default account.",
"type": "string"
},
"chat_id": {
"description": "Chat id from telegram_list_chats.",
"type": "string"
},
"chat_name": {
"description": "Optional: the name you expect for chat_id. It is never shown as the recipient — the preview shows Telegram's own name for chat_id and sets chat_name_mismatch when yours differs.",
"type": "string"
},
"confirm": {
"description": "Must be true to actually send. Without it, returns a preview.",
"type": "boolean"
},
"message": {
"description": "Text to send (max 4096 characters).",
"type": "string"
},
"remember": {
"description": "With confirm: true, also stop asking for this kind of action from now on. Only when the person said so (\"don't ask again\"). The person can revoke it in LMCP or with set_always_allowed.",
"type": "boolean"
},
"reply_to_message_id": {
"description": "Optional: the id of a message in this chat (from telegram_read_messages) that this message replies to. To acknowledge a message for telegram_delete_message, reply to it with the text ACK.",
"type": "integer"
}
},
"required": [
"chat_id",
"message"
],
"type": "object"
}Documentatievoorbeeld
Documentatievoorbeeld voor telegram_send_message. Voer dit voorbeeld niet uit. De getoonde argumenten verwijzen naar fictieve gegevens; zoek vóór een echte aanroep de werkelijke identificatoren op en vraag toestemming.
{
"chat_id": "5550100123",
"confirm": false,
"message": "Can we review the launch checklist on Tuesday?"
}Windows
Doel
Stuurt een Telegram-bericht vanuit je eigen account naar één gesprek. SCHRIJFbewerking met een voorbeeld: de eerste aanroep (confirm=false) retourneert een voorbeeld en verzendt NIETS; toon het aan de gebruiker en roep opnieuw aan met confirm=true pas nadat die akkoord is gegaan. De chat_id MOET afkomstig zijn uit telegram_list_chats — verzin er nooit een. Eén bericht per aanroep; geen massaverzending.
Vereiste invoer
chat_idmessage
De namen blijven exact zoals het hulpmiddel ze vereist. De canonieke technische definities in het Engels staan in het uitklapbare schema hieronder.
Machtigingen en bevestiging
Het schema bevat een expliciete bevestigingsparameter. Controleer het voorbeeld en autoriseer de echte bewerking volgens het platformcontract.
- Gebruik uitsluitend de apps, accounts en bronnen waarvoor de gebruiker op dit platform toestemming heeft gegeven. Raadpleeg de platformspecifieke beschrijving van deze tool voor de verbindings- en toestemmingsvereisten; deze catalogus veronderstelt geen aanvullende OAuth-bereiken of OS-rechten.
Canoniek technisch schema in het Engels — Windows
{
"properties": {
"account": {
"description": "Which linked Telegram account to use: its label or id from telegram_list_accounts. Leave it out to use the default account.",
"type": "string"
},
"chat_id": {
"description": "Chat id from telegram_list_chats.",
"type": "string"
},
"chat_name": {
"description": "Optional: the name you expect that chat to have. The preview shows the name Telegram gives for chat_id, never this one, and says when they differ.",
"type": "string"
},
"confirm": {
"description": "Must be true to actually send. Without it, returns a preview.",
"type": "boolean"
},
"message": {
"description": "Text to send (max 4096 characters).",
"type": "string"
},
"remember": {
"description": "With confirm=true, and only after the person said so: do this kind of action without asking from now on («don't ask me again»). The preview names the family.",
"type": "boolean"
},
"reply_to_message_id": {
"description": "Optional: the id of a message in this chat (from telegram_read_messages) that this message replies to. To acknowledge a message for telegram_delete_message, reply to it with the text ACK.",
"type": "integer"
}
},
"required": [
"chat_id",
"message"
],
"type": "object"
}Documentatievoorbeeld
Documentatievoorbeeld voor telegram_send_message. Voer dit voorbeeld niet uit. De getoonde argumenten verwijzen naar fictieve gegevens; zoek vóór een echte aanroep de werkelijke identificatoren op en vraag toestemming.
{
"chat_id": "5550100123",
"confirm": false,
"message": "Can we review the launch checklist on Tuesday?"
}