Update 'dogetipbot_telegram.py'
This commit is contained in:
parent
e1b7b838a2
commit
baafc544b5
@ -188,7 +188,7 @@ async def dogetip(update: Update, context: CallbackContext):
|
||||
unit = context.args[1]
|
||||
destinataire = context.args[2][1:]
|
||||
except (IndexError, ValueError):
|
||||
context.bot.send_message(
|
||||
await context.bot.send_message(
|
||||
chat_id=update.message.chat_id,
|
||||
text="Syntaxe : /dogetip xxx doge @destinataire",
|
||||
)
|
||||
@ -221,7 +221,7 @@ async def dogetip(update: Update, context: CallbackContext):
|
||||
+ f'<a href="https://blockchair.com/dogecoin/transaction/{txid}">Voir la transaction</a>'
|
||||
)
|
||||
|
||||
context.bot.send_message(
|
||||
await context.bot.send_message(
|
||||
chat_id=update.message.chat_id, parse_mode=ParseMode.HTML, text=message
|
||||
)
|
||||
|
||||
@ -266,7 +266,7 @@ async def withdraw(update: Update, context: CallbackContext):
|
||||
unit = context.args[1]
|
||||
address = context.args[2]
|
||||
except (IndexError, ValueError):
|
||||
context.bot.send_message(
|
||||
await context.bot.send_message(
|
||||
chat_id=update.message.chat_id, text="Syntaxe : /withdraw xxx doge adresse"
|
||||
)
|
||||
else:
|
||||
@ -279,7 +279,7 @@ async def withdraw(update: Update, context: CallbackContext):
|
||||
update.message.from_user.username, address, montant * 100000000
|
||||
)
|
||||
|
||||
context.bot.send_message(
|
||||
await context.bot.send_message(
|
||||
chat_id=update.message.chat_id,
|
||||
parse_mode=ParseMode.MARKDOWN,
|
||||
text="Transaction effectuée !\n"
|
||||
|
Loading…
Reference in New Issue
Block a user