This media type integrates your Zabbix installation with Telegram using the Zabbix webhook feature.

Telegram configuration:

1. Register a new Telegram bot: send "/newbot" to "@BotFather" and follow the instructions. The token provided by "@BotFather" in the final step will be needed for configuring the Zabbix webhook.

2. Set up personal or group notifications:

2.1 Personal notifications:

2.1.1 Retrieve the chat ID of the user the bot should send messages to. The user should send "/getid" to "@myidbot" in the Telegram messenger.

2.1.2 The user should also send "/start" to the bot created in step 1. If you skip this step, the Telegram bot won't be able to send messages to the user (bots cannot initiate conversations with users).

2.2 Group notifications:

2.2.1 Retrieve the group ID of the group that the bot should send messages to. Add "@myidbot" and the bot created in step 1 to your group.

2.2.2 In the group chat, send: "/getgroupid@myidbot".

2.2.3 If the bot is added to a supergroup and you want the bot to send messages to a specific topic instead of the default "General" channel, right-click any message in that topic and click "Copy Message Link". The copied link will have the following format: "https://t.me/c/<short_group_id>/<topic_id>/<message_id>", for example: "https://t.me/c/1234567890/2/1". In this example, the topic ID is "2".

Note:
- The group ID is a negative number, for example: "-1234567890".
- The supergroup ID is a negative number prefixed with "-100", for example: "-1001234567890"
- The public group or supergroup ID can also be specified in media type properties as a name prefixed by "@", for example: "@MyGroupName".

3. Depending on where you want to send notifications, copy and save the bot token, personal chat ID or group ID, and topic ID (if you want to send messages to a specific supergroup topic), as you will need these later to set up the media type in Zabbix.

Zabbix configuration:

1. Set the following webhook parameters:
- "api_parse_mode" - the formatting mode applied for messages (possible values: "markdown", "html", "markdownv2")
- "api_token" - the token of the bot used to send messages

Learn more about message formatting options in Telegram Bot API documentation:
- Markdown: https://core.telegram.org/bots/api#markdown-style
- HTML: https://core.telegram.org/bots/api#html-style
- MarkdownV2: https://core.telegram.org/bots/api#markdownv2-style

Note: Your Telegram-related actions should be separated from other notification types (e.g., SMS); otherwise, if you use Markdown or HTML in the alert subject or body, you may receive plain-text alerts with raw tags.

2. Click the "Enabled" checkbox to enable the media type and click the "Update" button to save the webhook settings.

3. Create a Zabbix user and add media:
- To create a new user, go to the "Users" → "Users" section, click the "Create user" button in the top right corner. In the "User" tab, fill in all required fields (marked with red asterisks).
- Make sure this user has access to all hosts for which you would like problem notifications to be sent to Telegram.
- In the "Media" tab, click "Add" and select the type "Telegram" from the drop-down list.
- In the "Send to" field, specify the Telegram user chat ID or group ID that you retrieved during Telegram setup. To send notifications to a specific topic within a supergroup, specify the topic ID after the semicolon delimiter in the format "<group_id>:<topic_id>", for example: "-1001234567890:2", "@MyGroupName:2".

4. Done! You can now start using this media type in actions and create tickets.

You can find the latest version of this media and additional information in the official Zabbix repository:
https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/telegram