vkopitsa / mono_personal_tgbot

The telegram bot for the Monobank

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monobank personal telegram bot

GitHub release Test Download license

A simple telegram bot, written in Go with the telegram-bot-api library.

mono_personal_tgbot

mono_personal_tgbot

Usage

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

Telegram commands

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

Usage with docker-compose

Rename .env.dev file to .env and edit.

# docker-compose up -d

Download

Windows, Linux, MacOS

Compatibility

The bot is only available for Windows, Linux, MacOS.

Licence

The bot is available under the MIT license. See the LICENSE file for more info.

About

The telegram bot for the Monobank

License:MIT License


Languages

Language:Go 97.2%Language:Makefile 2.1%Language:Dockerfile 0.7%