Telegram Settings
API settings for posting to Telegram
Settings Schema
When creating a post for Telegram, use the following settings schema:
{
"settings": {
"__type": "telegram"
}
}Telegram has no provider-specific settings beyond __type. The destination
chat or channel is determined by the connected integration, not the
settings block. Post content, images, and the schedule are configured at
the post level - see the Create Post reference.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
__type | string | Yes | Must be telegram |
Complete Example
Text Post
{
"type": "schedule",
"date": "2024-12-14T10:00:00.000Z",
"shortLink": false,
"tags": [],
"posts": [
{
"integration": {
"id": "your-telegram-integration-id"
},
"value": [
{
"content": "Hello from the Postiz API!",
"image": []
}
],
"settings": {
"__type": "telegram"
}
}
]
}Post with Image
{
"type": "now",
"date": "2024-12-14T10:00:00.000Z",
"shortLink": false,
"tags": [],
"posts": [
{
"integration": {
"id": "your-telegram-integration-id"
},
"value": [
{
"content": "Sharing today's launch screenshot",
"image": [
{
"id": "image-id",
"path": "https://uploads.postiz.com/launch.png"
}
]
}
],
"settings": {
"__type": "telegram"
}
}
]
}