Aquest bot s'ha realitzat amb Python 3.5 i les llibreries python-telegram-bot i requests per un article pel blog de la web d'APSL.
Per poder utilitzar el bot és necessari haver instal·lat Python 3.5, i les llibreries: python-telegram-bot i requests.
Per utilitzar el bot has d'introduir un token generat amb The @BotFather i executar el fitxer bot.py
mitjançant l'ordre: python3 bot.py
.
Després al xat de Telegram amb el bot podràs executar les següents ordres:
/saluda
/saluda_nom [i el teu nom]
/conversio [quantitat] [divisa d'entrada] [divisa de sortida]
Exemples:
/saluda
/saluda_nom Marc
/conversio 1 EUR USD
- Marc Hernández - noviluni
Equip d'APSL, per haver-me permès escriure un post al seu blog.