Handle an crash when user deletes the bot message manually
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
This commit is contained in:
parent
9f26ed107c
commit
35f99c849f
|
|
@ -141,7 +141,10 @@ def _mirror(update, context, isTar=False):
|
||||||
index = update.effective_chat.id
|
index = update.effective_chat.id
|
||||||
with status_reply_dict_lock:
|
with status_reply_dict_lock:
|
||||||
if index in status_reply_dict.keys():
|
if index in status_reply_dict.keys():
|
||||||
deleteMessage(context, status_reply_dict[index])
|
try:
|
||||||
|
deleteMessage(context, status_reply_dict[index])
|
||||||
|
except BadRequest:
|
||||||
|
pass
|
||||||
status_reply_dict[index] = reply_msg
|
status_reply_dict[index] = reply_msg
|
||||||
listener = MirrorListener(context, update, reply_msg, isTar)
|
listener = MirrorListener(context, update, reply_msg, isTar)
|
||||||
aria = download_tools.DownloadHelper(listener)
|
aria = download_tools.DownloadHelper(listener)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue