From 90c4bc4d6e4d8c0b85e74255534beaf31c4151a0 Mon Sep 17 00:00:00 2001 From: Federico Date: Sun, 12 May 2024 23:38:45 +0200 Subject: [PATCH] minor changes --- grouphug.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/grouphug.py b/grouphug.py index 0bcb2a5..f2abd20 100644 --- a/grouphug.py +++ b/grouphug.py @@ -13,9 +13,7 @@ load_dotenv() -async def handle_transaction( - update: Update, context: ContextTypes.DEFAULT_TYPE - -> None: +async def start(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: await update.message.reply_text("Send me a Bitcoin transaction in raw format") async def handle_transaction(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: @@ -44,7 +42,7 @@ async def send_to_server(message): def validate_transaction(tx_raw): # Strip and remove all spaces - tx_raw = tx_raw.strip().replace(' ', '') + #tx_raw = tx_raw.strip().replace(' ', '') # Check if all characters are valid hexadecimal if any(c not in "0123456789abcdefABCDEF" for c in tx_raw):