From 9b9197be0e9ada48c98e3d2c101c5a63f8d1c9e2 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sat, 26 Jul 2025 13:55:14 +0300 Subject: [PATCH] fix handle send method returning image hash --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 4290b7e..65b5bec 100644 --- a/main.py +++ b/main.py @@ -363,9 +363,9 @@ async def send_callback(cq: CallbackQuery): result = resp.get('result') if not result: raise Exception(f'No result in response: {resp}') - if resp.get('status') == 'duplicate': + elif result.get('status') == 'duplicate': await cq.answer('Duplicate') - elif resp.get('status') == 'ok': + elif result.get('status') == 'ok': await cq.answer('Sent') else: raise Exception(resp)