Détails sur la syntaxe
This commit is contained in:
parent
70da371c0a
commit
08655dfde4
6
run.py
6
run.py
@ -78,9 +78,13 @@ def address_transaction(account, address, amount):
|
|||||||
# Telegram functions
|
# Telegram functions
|
||||||
|
|
||||||
def start(bot, update):
|
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):
|
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])
|
montant = int(args[0])
|
||||||
unit = args[1]
|
unit = args[1]
|
||||||
destinataire = args[2][1:]
|
destinataire = args[2][1:]
|
||||||
|
Loading…
Reference in New Issue
Block a user