Skip to content

Commit

Permalink
feat(docs): add guide for setting up Telegram bot notifications (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
fassko authored Jan 9, 2025
1 parent 116c02f commit 2563b27
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/fassets/guides/7-telegram-bot-notifications.mdx
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.
:::

0 comments on commit 2563b27

Please sign in to comment.