fix handle send method returning image hash

This commit is contained in:
bakatrouble 2025-07-26 13:55:14 +03:00
parent fed68c0dfb
commit 9b9197be0e

View File

@ -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)