This commit is contained in:
nyanloutre 2017-10-08 16:21:52 +02:00
parent 790382b55b
commit cabc898900
Signed by: nyanloutre
GPG Key ID: F85D93686A3A9063
1 changed files with 6 additions and 0 deletions

6
run.py
View File

@ -130,6 +130,9 @@ def withdraw(bot, update, args):
bot.send_message(chat_id=update.message.chat_id, parse_mode=ParseMode.MARKDOWN, text="Transaction effectuée !\n [tx](https://chain.so/tx/" + NETWORK + "/" + txid + ")")
def testing(bot, update):
bot.send_message(chat_id=update.message.chat_id, parse_mode=ParseMode.MARKDOWN, text="Bonjour V_IAL")
# Telegram initialisation
updater = Updater(token=TELEGRAM_API_KEY)
@ -150,5 +153,8 @@ dispatcher.add_handler(infos_handler)
withdraw_handler = CommandHandler('withdraw', withdraw, pass_args=True)
dispatcher.add_handler(withdraw_handler)
testing_handler = CommandHandler('testing', testing)
dispatcher.add_handler(testing_handler)
updater.start_polling()
updater.idle()