my-savings-telegram-bot

command module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Unlicense Imports: 1 Imported by: 0

README

My Savings — Telegram Bot

License

Description

🤖 This bot needs for simply storing your savings in a different currencies.

Originally, you may find it at https://t.me/MySavingsV0Bot, but it not always working, cause resources are limited. 😭

Usage

You may run your own copy of this bot with Docker:

docker pull lordotu/my-savings-telegram-bot

docker run -dti \
  -e FIXERIO_API_KEY=<https://fixer.io API Key> \
  -e TELEGRAM_API_TOKEN=<Telegram API Token> \
  --name my-savings-telegram-bot \
  lordotu/my-savings-telegram-bot

But before, you should register your bot via BotFather https://t.me/BotFather and get API key for Fixer https://fixer.io/signup/free

And don't forget about MongoDB which is used for storing data.

Configuring

# Defaults

DEBUG=false
DEBUG_TELEGRAM_API="false"


MONGO_DB_URI="mongodb://localhost:27017"
MONGO_DB_DATABASE="my-savings-telegram-bot"

RATES_PROVIDER="fixerio"
RATES_PROVIDER_OPTIONS="{\"FixerIOAPIKey\": \"\", \"FixerIOBaseCurrency\": \"EUR\", \"FixerIOSecure\": false, \"FixerIOSymbols\": [\"USD\",\"EUR\",\"JPY\",\"GBP\",\"AUD\",\"CAD\",\"CHF\",\"CNY\",\"NZD\",\"RUB\"]}"
RATES_RPOVIDER_UPDATE_PERIOD=3600

TELEGRAM_API_TOKEN=
TELEGRAM_API_UPDATES_TIMEOUT=60

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
bot

Jump to

Keyboard shortcuts

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