Telegram
- Tier: Free, Premium, Ultimate
- Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated
You can configure GitLab to send notifications to a Telegram chat or channel. To set up the Telegram integration, you must:
Create a Telegram bot
To create a bot in Telegram:
- Start a new chat with
@BotFather
. - Create a new bot as described in the Telegram documentation.
When you create a bot, BotFather
provides you with an API token. Keep this token secure as you need it to authenticate the bot in Telegram.
Configure the Telegram bot
To configure the bot in Telegram:
- Add the bot as an administrator to a new or existing channel.
- Assign the bot
Post Messages
rights to receive events. - Create an identifier for the channel.
- For public channels, enter a public link and copy the channel identifier (for example,
https:/t.me/MY_IDENTIFIER
). - For private channels, use the
getUpdates
method with your API token and copy the channel identifier (for example,-2241293890657
).
- For public channels, enter a public link and copy the channel identifier (for example,
Set up the Telegram integration in GitLab
After you invite the bot to a Telegram channel, you can configure GitLab to send notifications:
- To enable the integration:
- For your group or project:
- On the left sidebar, select Search or go to and find your project or group.
- Select Settings > Integrations.
- For your instance:
- On the left sidebar, at the bottom, select Admin.
- Select Settings > Integrations.
- For your group or project:
- Select Telegram.
- Under Enable integration, select the Active checkbox.
- Optional. In Hostname, enter the hostname of your local bot API server.
- In Token, paste the token value from the Telegram bot.
- In the Trigger section, select the checkboxes for the GitLab events you want to receive in Telegram.
- In the Notification settings section:
- In Channel identifier, paste the Telegram channel identifier.
- Optional. In Message thread ID, paste the unique identifier for the target message thread (topic in a forum supergroup).
- Optional. Select the Notify only broken pipelines checkbox to receive notifications for failed pipelines only.
- Optional. From the Branches for which notifications are to be sent dropdown list, select the branches you want to receive notifications for.
- Optional. Select Test settings.
- Select Save changes.
The Telegram channel can now receive all selected GitLab events.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support