Skip to content

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

License

Notifications You must be signed in to change notification settings

LordotU/my-savings-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 TELEGRAM_API_TOKEN=<Telegram API Token> \
  -e RATES_PROVIDER_OPTIONS="{\"FixerIOAPIKey\": \"<https://fixer.io API Key>\", \"FixerIOBaseCurrency\": \"EUR\", \"FixerIOSecure\": false, \"FixerIOSymbols\": [\"USD\",\"EUR\",\"JPY\",\"GBP\",\"AUD\",\"CAD\",\"CHF\",\"CNY\",\"NZD\",\"RUB\"]}" \
  --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