A simple telegram bot that will send currency rates every morning and every evening or by request.
Bot developed to be deployed on heroku.com.
Usage:
Change following properties in src/main/resources/telegram.properties
bot.name - bot name that you received from telegram's BotFather.
bot.token - token for HTTP API usage that you received from telegram's BotFather.
general.ids - comma separated list of telegram ids, so bot can send scheduled messages to them. Example '345634634,3463453451,787765'
access.pwd - password on which bot will react and send currency rates on demand.
zone.id - your time zone id, on image example it is set to 'Europe/Moscow'.
Also configure property in src/main/resources/application.properties
app.url - heroku application url that is used to send heartbeats and prevent heroku to put application in "sleep" mode.
'greetings' properties are as greetings for scheduled messages in evening and morning time.
Structure of 'greetings': 'chat_id_1:greeting_1|chat_id_2:greeting_2'. Example:
greetings.morning=674564564:Good morning, Vladimir.|8456345:Good morning, Bob.
greetings.evening=674564564:Good evening, Vladimir.|8456345:Good evening, Bob.
muraya / currency-checker Goto Github PK
View Code? Open in Web Editor NEWThis project forked from n0n4m3q/currency-checker
A simple telegram bot that will send currency rates every morning and every evening or by request.
License: Apache License 2.0