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
- Search
BotFather
in Telegram Contacts. - Create a new bot by sending the
/newbot
command to BotFather (opens in a new tab). - BotFather will ask you for a name and username, then generate an authorization token for your new bot.
- Copy the
token
.
Create a Channel to get chat_id
- Create a new channel named
GoBackup Notifer
. - Set up channel as
Public Channel
and set channel linkt.me/gobackuptest
, and save. - Your
chat_id
is@gobackuptest
. - 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