On this page

latest contributor to this doc

Last Edit:

@gcharang

Telegram Alerts for Bot Trading

overviewtelegram_alerts

The Komodo DeFi Framework API Market Maker bot can be configured to send status update alerts via Telegram.

To set this up, you can add some additional parameters to your MM2.json as shown in the example below:

{
	"gui": "MarketMakerBot",
	"netid": 8762,
	"rpc_password": "YOUR_PASSWORD",
	"passphrase": "YOUR SEED PHRASE",
	"dbdir": "/path/to/your/komodefi/DB",
	"message_service_cfg": {
		"telegram": {
			"api_key": "YOUR:TELEGRAM_API_TOKEN",
			"chat_registry": {
				"default": "YOUR_TELEGRAM_CHAT_ID",
				"maker_bot": "YOUR_TELEGRAM_CHAT_ID",
				"swap_events": "YOUR_TELEGRAM_CHAT_ID"
			}
		}
	}
}

The extra fields required are:

Parameter* = requiredTypeDescription
api_key*
string
A Telegram bot API token
chat_registry.default*
string
A Telegram Chat ID
chat_registry.maker_bot*
string
A Telegram Chat ID
chat_registry.swap_events*
string
A Telegram Chat ID

You can use the same Telegram chat ID for all three chat_registry subfields, or send your alerts to a different chat ID if you want to separate the alerts by type.

To get a Telegram bot API token, you need to have a chat with the BotFather.

To get a Telegram chat ID, check out this guide.