From 2d69591b380be17cfc3301b976c43b97d4a8e5e8 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 5 Oct 2017 14:59:12 +0200 Subject: [PATCH] Meilleur message de confirmation --- run.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 1b00f25..bb2de68 100644 --- a/run.py +++ b/run.py @@ -88,7 +88,12 @@ def dogetip(bot, update, args): txid = response['data']['txid'] - bot.send_message(chat_id=update.message.chat_id, parse_mode=ParseMode.MARKDOWN, text="🚀 Transaction effectuée 🚀\n\n [tx](https://chain.so/tx/" + NETWORK + "/" + txid + ")") + message = "🚀 Transaction effectuée 🚀\n\n" \ + + str(montant) + " " + NETWORK + "\n" \ + + update.message.from_user.username + " → " + destinataire + "\n\n" \ + + "[Voir la transaction](https://chain.so/tx/" + NETWORK + "/" + txid + ")" + + bot.send_message(chat_id=update.message.chat_id, parse_mode=ParseMode.MARKDOWN, text=message) def register(bot, update): try: