Skip to content
🤖 This bot needs for simply storing your savings in a different currencies
Go Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
assets
bot
rates
repository
templates
types
utils
.dockerignore
.gitignore
Dockerfile
LICENSE
README.md
go.mod
go.sum
main.go

README.md

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
You can’t perform that action at this time.