Telegram Notifications for Azure PipelinesTelegram Notification task uses Telegraf - Telegram Bot Framework for Node.js and allows you to send customizable notifications to your Telegram chats and groups. This task has some predefined options of what info (e.g build/release status, ID etc.) to include in the message about your build/release process. This is actively maintained fork of telegram-notifications. New contributions are welcome! Getting startedOnly three steps to start receiving your notifications: 1. Create a Bot 2. Get Chat Ids 3. Customize your notifications Follow the instructions below to configure the Telegram Notifications task to send messages to a group or chat. Create a BotFirst of all, you need to create a Telegram bot which will later send all the notifications to your chats.
Having a bot allows you to fully customize its appearance (nickname, user picture) and add it to as many chats or groups as you want. Obtain chat IDsCurrently, Telegram doesn't offer a convenient way to obtain all chat IDs from bot API. So there are two ways to do it: 1. Add @RawDataBot to your groupUpon joining it will send a JSON where your chat ID will be located at message.chat.id. Don't forget to remove the bot from chat right after. 2. Use built-in "Get chat ID" feature (Preview)If you want the bot to send notifications directly to you (not a group), the trick with @RawDataBot won't work. You need to:
Customize your messageThere are some basic predefined features both for build and release tasks. General
In order this to work properly, don't forget to change run conditions of the task to "Even if a previous task has failed"
For Release
For Build
NOTE: USE EITHER RELEASE OR BUILD RELATED OPTIONS DEPENDING ON YOUR PROCESS Sending Messages to Specific Topics within SupergroupsTo send messages to a specific topic within a supergroup, you need to specify both Example ConfigurationHere is an example of how to configure the task to send messages to a specific topic within a supergroup:
In this example, replace |