Update 'dogetipbot_telegram.py'

This commit is contained in:
nyanloutre 2023-06-13 16:56:17 +02:00
parent e1b7b838a2
commit baafc544b5
1 changed files with 4 additions and 4 deletions

View File

@ -188,7 +188,7 @@ async def dogetip(update: Update, context: CallbackContext):
unit = context.args[1] unit = context.args[1]
destinataire = context.args[2][1:] destinataire = context.args[2][1:]
except (IndexError, ValueError): except (IndexError, ValueError):
context.bot.send_message( await context.bot.send_message(
chat_id=update.message.chat_id, chat_id=update.message.chat_id,
text="Syntaxe : /dogetip xxx doge @destinataire", 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>' + 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 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] unit = context.args[1]
address = context.args[2] address = context.args[2]
except (IndexError, ValueError): except (IndexError, ValueError):
context.bot.send_message( await context.bot.send_message(
chat_id=update.message.chat_id, text="Syntaxe : /withdraw xxx doge adresse" chat_id=update.message.chat_id, text="Syntaxe : /withdraw xxx doge adresse"
) )
else: else:
@ -279,7 +279,7 @@ async def withdraw(update: Update, context: CallbackContext):
update.message.from_user.username, address, montant * 100000000 update.message.from_user.username, address, montant * 100000000
) )
context.bot.send_message( await context.bot.send_message(
chat_id=update.message.chat_id, chat_id=update.message.chat_id,
parse_mode=ParseMode.MARKDOWN, parse_mode=ParseMode.MARKDOWN,
text="Transaction effectuée !\n" text="Transaction effectuée !\n"