You can configure Zendesk to send notifications to Telegram channels and groups using native webhooks functionality (no apps required)
1. Create a new channel in Telegram. Create a public channel. We'll convert it to a private channel to keep notifications private later on. Set the channel public link and save it.
2. Create a bot. Use @botfather to create the bot. The bot will be sending messages to the channel
Save the token - we'll use it later in the webhook.
3. Add the bot to the channel. Add the bot to the channel as Administrator (Channel info→ Edit → Administrators )
4. Get the channel's ID. Copy the following link to the browser:
https://api.telegram.org/bot111:222/sendMessage?chat_id=@channelName&text=Test
- Replace 111:222 with your bot token
- Replace channelName with your channel URL
Save the chat_id e.g. -100xxxxxxxxx
5. Make channel private. You can do this in Channel Info → Edit → Channel type
6. Set up Zendesk Webhooks. Go to Admin Center → Webhooks →Add Webhook. Select Trigger or automation as a way to connect.
- Set Endpoint URL with xxx:xxxx replaced with your bot token:
https://api.telegram.org/botxxx:xxxxxxx/sendMessage
- Select Request Method as POST
- Set Reuest format as JSON
- Select Authentication to None
-
Press Create Webhook to finalize
6. Create a trigger. You can set up any conditions you wish and send any text to the telegram using Zendesk placeholders
In the Actions section, choose Notify By > Active Webhook, and select your webhook. Paste the following JSON to the edit box:
{
"chat_id": "-100xxxxxxxxx",
"text": "New ticket {{ticket.id}} - {{ticket.description}}"
}
Note: You can edit the "text" attribute value to send any information that is available via Zendesk placeholders.
That's it! Whenever the trigger fires, you receive notification into your Telegram channel.
----------------------
Next steps: Would you like to connect the Telegram bot to your Zendesk account, reply to comments in Telegram channels and groups, or connect the bot to respond to your personal messages? You can use our Telegramer app from the Zendesk marketplace.
Comments
0 comments