This guide explains how to send posts from your community to the Telegram chat, group, or channel. Since Telegram doesn't have Zapier integration, we have to use a bit of code to make it work.
Configure Telegram
- Create your Telegram bot using @BotFather and copy the token to be able to use it later.
- Add your bot as an admin user to the desired telegram chat or group.
- Write a new message in the chat where you've added the bot.
- Open
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates
in the browser.
- You will see your message serialized in JSON format. Just copy chat.id to be able to specify it in your Zap later.

Create a Zap
- Open Zap Editor
- For the trigger, select PeerBoard -> New Post Created.
- Authenticate into your board in Zapier using Auth token from your community Settings -> Hosting
- Optionally, you can specify particular categories you want to receive notifications from.
- Test your trigger and continue to the action.
- For the action, select Code By Zapier -> Run Javascript.
- Copy following javascript snippet and configure your inputs as follows:

const template = `
New post <a href="${inputData.postURL}">${inputData.title}</a>
By <a href="${inputData.categoryURL}">${inputData.category}</a>
In <a href="${inputData.authorURL}">${inputData.author}</a>
${inputData.preview}
<a href="${inputData.postURL}">Read or comment</a>
`;
await fetch(`https://api.telegram.org/bot${inputData.token}/sendMessage`, {
method: 'POST',
cache: 'no-cache',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
chat_id: inputData.chatId,
text: template,
parse_mode: 'HTML',
disable_web_page_preview: true,
})
}).then(res => res.json()).then(json => callback(null, json)).catch(callback);
💡Note You can customize the post message in the code snippet. Read more about Telegram formatting.
Test and turn on your Zap. You should receive the latest post in the chat.
If you have any questions or problems, feel free to ask in the comments, we are happy to help!