-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): add guide for setting up Telegram bot notifications (#483)
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
sidebar_position: 6 | ||
slug: telegram-bot-notifications | ||
title: Telegram Bot Notifications | ||
description: Set up a Telegram bot to receive notifications | ||
tags: [intermediate, fassets, bitcoin, dogecoin] | ||
authors: [fassko] | ||
keywords: [fassets, xrp, btc, doge flare-network, flare-network] | ||
--- | ||
|
||
1. Get the API key from the [FAssets Telegram Bot](http://t.me/FlareFAssetsSongbirdBot) by sending `/events` and selecting `Subscribe to Events`. | ||
2. Add the following configuration to the `apiNotifierConfigs` list in the `config.json` file, replacing `API_KEY` with the key obtained from the bot. | ||
|
||
```json | ||
{ | ||
"apiKey": "API_KEY", | ||
"apiUrl": "https://fasset-tg-bot-songbird.flare.network", | ||
"level": "danger" | ||
} | ||
``` | ||
|
||
:::info | ||
Please note that notifications will only be sent out for **danger** and **critical** levels, regardless of the configured level. This is enforced by the Telegram bot, which ignores other events to prevent unnecessary HTTP requests. | ||
::: |