Telegram Bot channel properties
There are Telegram Bot channel-specific properties that can be used when making calls to the Conversation API. These properties can be listed under channel_properties
in the message request.
For example, below is the code for adding the channel specific property TELEGRAM_DISABLE_LINK_PREVIEW
to a Conversation API call:
{
"app_id": "{{APP_ID}}",
"recipient": {
"contact_id": "{{CONTACT_ID}}"
},
"message": {
"text_message": {
"text": "Text message from Sinch Conversation API."
}
},
"channel_priority_order": ["TELEGRAM"],
"channel_properties": {
"TELEGRAM_DISABLE_LINK_PREVIEW": "TRUE"
}
}
The relevant Telegram Bot channel properties are detailed in the table below:
Property name | Property value |
---|---|
TELEGRAM_DISABLE_LINK_PREVIEW |
When message content contains a URL, by default Telegram will analyze the URL and get a preview for it. Use this parameter to disable link preview. |