From a6171e9df18bd24f3fa7c8f1ce486f523fdc6748 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Fri, 7 Aug 2020 07:46:36 -0700 Subject: [PATCH] fuck markdown (for now) --- tipbot/commands/tip.py | 5 ++--- tipbot/commands/withdraw.py | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tipbot/commands/tip.py b/tipbot/commands/tip.py index c4474a6..e6381c8 100644 --- a/tipbot/commands/tip.py +++ b/tipbot/commands/tip.py @@ -1,6 +1,5 @@ import logging from decimal import Decimal -from telegram import ParseMode from tipbot import wownero from tipbot import db from tipbot.helpers.decorators import wallet_rpc_required, log_event, registration_required, check_debug @@ -63,8 +62,8 @@ def tip(update, context): tx = wownero.Wallet().transfer(dest_address=address, amount=wownero.as_wownero(amount), priority=2, account=tipper.account_index) if 'tx_hash' in tx: h = tx['tx_hash'] - msg = f'Tipped @{target_un} {amount} WOW\! TX ID: [{h}](https://wownero.club/transaction/{h})' - update.message.reply_text(msg, parse_mode=ParseMode.MARKDOWN_V2) + msg = f'Tipped @{target_un} {amount} WOW! Tx: {h}' + update.message.reply_text(msg) else: logging.error(f'Transaction failure details for {tipper.telegram_user} ({tipper.telegram_id}): {tx}') update.message.reply_text(f'Failed to send a tip. Reason: "{tx["message"]}"') diff --git a/tipbot/commands/withdraw.py b/tipbot/commands/withdraw.py index 5dc3366..76f1b60 100644 --- a/tipbot/commands/withdraw.py +++ b/tipbot/commands/withdraw.py @@ -1,6 +1,5 @@ import logging from decimal import Decimal -from telegram import ParseMode from tipbot import wownero from tipbot import db from tipbot.helpers.decorators import wallet_rpc_required, log_event, registration_required, check_debug @@ -44,8 +43,8 @@ def withdraw(update, context): tx = wownero.Wallet().transfer(dest_address=address, amount=wownero.as_wownero(amount), priority=2, account=sender.account_index) if 'tx_hash' in tx: h = tx['tx_hash'] - msg = f'Sent {amount} WOW\! TX ID: [{h}](https://wownero.club/transaction/{h})' - update.message.reply_text(msg, parse_mode=ParseMode.MARKDOWN_V2) + msg = f'Sent {amount} WOW! Tx: {h}' + update.message.reply_text(msg) else: logging.error(f'Transaction failure details for {sender.telegram_user} ({sender.telegram_id}): {tx}') update.message.reply_text(f'Failed to withdraw Wownero. Reason: "{tx["message"]}"')