mono_personal_tgbot

command module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 22 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL