Pages in Guides
Telegram and Discord
Telegram posts as the user's own bot in a channel or group; Discord posts through the channel's webhook. Both take text, up to 10 photos or videos, and the options below. None needs an extra permission.
options.telegram.parseMode:MarkdownV2orHTMLformats the text; leave it out for plain text. In MarkdownV2 put\before each_*[]()~`>#+-=|{}.!that is not formatting; in HTML write<for a literal<. Ampost escapeslinkUrlitself and refuses text Telegram cannot parse, naming the character.disableNotification(silent),protectContent(no forwarding or saving),disableLinkPreviewandsendAsDocument(media as files, not recompressed; several go as one album of files).options.discord.embeds: up to 10 embeds withtitle,description,url,color,imageUrland up to 25fields; 6,000 characters across all embeds.usernameandavatarUrlchange who the message appears from;threadNamestarts a post in a forum channel (required there);polladds a poll (2-10 answers, up to 32 days).- Edits change the text only: embeds and polls stay, Telegram keeps the parse mode.
Telegram: MarkdownV2, silent, no preview
{
"targets": [
{
"platforms": [
"telegram"
]
}
],
"text": "*Ampost 2\\.0* is out\\. Read the [changelog](https://ampost.io/changelog)\\.",
"options": {
"telegram": {
"parseMode": "MarkdownV2",
"disableNotification": true,
"disableLinkPreview": true
}
}
}Telegram: photos as files
{
"targets": [
{
"platforms": [
"telegram"
]
}
],
"text": "Full-resolution press photos",
"media": [
{
"url": "https://cdn.example.com/press-1.png",
"type": "image"
},
{
"url": "https://cdn.example.com/press-2.png",
"type": "image"
}
],
"options": {
"telegram": {
"sendAsDocument": true,
"protectContent": true
}
}
}Discord: embed under another name
{
"targets": [
{
"platforms": [
"discord"
]
}
],
"text": "Ampost 2.0 is out.",
"options": {
"discord": {
"username": "Ampost Releases",
"avatarUrl": "https://cdn.example.com/logo.png",
"embeds": [
{
"title": "What's new in 2.0",
"url": "https://ampost.io/changelog",
"description": "Threads, alt text and media conversion.",
"color": "#5865F2",
"imageUrl": "https://cdn.example.com/release.png",
"fields": [
{
"name": "Fixes",
"value": "12",
"inline": true
},
{
"name": "Features",
"value": "3",
"inline": true
}
]
}
]
}
}
}Discord: forum post with a poll
{
"targets": [
{
"platforms": [
"discord"
]
}
],
"text": "Which feature should we build next?",
"options": {
"discord": {
"threadName": "Roadmap vote: November",
"poll": {
"question": "Next feature?",
"answers": [
"Inbox",
"Bulk edit",
"Calendar sync"
],
"durationHours": 72
}
}
}
}