允许找不到信息时 直接发出

修复当请求花费超过60秒 回复的信息已经删除 导致的无法回复抛出异常
This commit is contained in:
洛水居室 2022-06-10 17:16:01 +08:00
parent a329d27402
commit d3356af95d
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -119,7 +119,7 @@ class Sign(BasePlugins):
else:
await message.reply_chat_action(ChatAction.TYPING)
sign = await self._start_sign(user_info, user_info.service)
reply_message = await message.reply_text(sign)
reply_message = await message.reply_text(sign, allow_sending_without_reply=True)
if filters.ChatType.GROUPS.filter(reply_message):
self._add_delete_message_job(context, reply_message.chat_id, reply_message.message_id)
return ConversationHandler.END