From cabc898900f4262fcf59727b7403d2f96eb5840f Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 8 Oct 2017 16:21:52 +0200 Subject: [PATCH] Testing --- run.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run.py b/run.py index 6f9d7b3..8d4c952 100644 --- a/run.py +++ b/run.py @@ -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()