A simple telegram bot, written in Go with the telegram-bot-api library.
Run mono_personal_tgbot
execution file in your terminal with following env variables
Environment variable | Description |
---|---|
TELEGRAM_TOKEN |
How to get telegram bot token |
TELEGRAM_ADMINS |
ids of the trusted user, example: 1234567,1234567 |
TELEGRAM_CHATS |
ids of the trusted chats, example: -1234567,-1234567 |
MONO_TOKENS |
How to get monobank token |
Command | Description |
---|---|
/balance |
Get a balance of the clients. |
/report |
Get a report for the period of the clients. |
/get_webhook[_n] |
Get a status about setup webhook of the default client or first one or by number. example: /get_webhook , /get_webhook_1 |
/set_webhook[_n] |
Set webhook url to monobank api of the default client or first one or by number. example: /set_webhook , /set_webhook_1 |
Rename .env.dev
file to .env
and edit.
# docker-compose up -d
The bot is only available for Windows, Linux, MacOS.
The bot is available under the MIT license. See the LICENSE file for more info.