Détails sur la syntaxe

This commit is contained in:
nyanloutre 2017-10-08 17:21:06 +02:00
parent 70da371c0a
commit 08655dfde4
Signed by: nyanloutre
GPG Key ID: F85D93686A3A9063
1 changed files with 22 additions and 18 deletions

6
run.py
View File

@ -78,9 +78,13 @@ def address_transaction(account, address, amount):
# Telegram functions
def start(bot, update):
bot.send_message(chat_id=update.message.chat_id, text="I'm a bot, please talk to me!")
bot.send_message(chat_id=update.message.chat_id, text="Bark ! Je suis un tipbot Dogecoin ! \n\n Pour commencer envoyez moi /register")
def dogetip(bot, update, args):
if len(args != 3):
bot.send_message(chat_id=update.message.chat_id, text="Syntaxe : /dogetip xxx doge @destinataire")
else:
montant = int(args[0])
unit = args[1]
destinataire = args[2][1:]