fix handle send method returning image hash
This commit is contained in:
parent
fed68c0dfb
commit
9b9197be0e
4
main.py
4
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)
|
||||
|
Loading…
Reference in New Issue
Block a user