Configuration
Notifiers
Telegram

Telegram

Since: 1.5.0

Telegram (opens in a new tab) is a team communication tool.

We can send Telegram message by use Telegram Bot API (opens in a new tab), you can follow the Telegram Bot Guide (opens in a new tab) to get the bot token.

Config keys

  • endpoint - Telegram Bot API endpoint, default: api.telegram.org
  • chat_id - Unique identifier for the target chat or username of the target channel (in the format @channelusername)
  • token - Telegram bot token

Get Token

  1. Search BotFather in Telegram Contacts.
  2. Create a new bot by sending the /newbot command to BotFather (opens in a new tab).
  3. BotFather will ask you for a name and username, then generate an authorization token for your new bot.
  4. Copy the token.

Create a Channel to get chat_id

  1. Create a new channel named GoBackup Notifer.
  2. Set up channel as Public Channel and set channel link t.me/gobackuptest, and save.
  3. Your chat_id is @gobackuptest.
  4. Add the bot to the channel as an administrator.

NOTE: Channel id is unique, so you must rename gobackuptest to other name as you want.

Example

models:
  my_app:
    storages:
      local:
        type: local
        keep: 10
    notifiers:
      telegram:
        type: telegram
        chat_id: '@gobackuptest'
        token: this-is-your-bot-token

Message Example