🔭 修复加入用户群后发送消息报错, 自动删除原消息改为 5s 后

This commit is contained in:
Xtao_dada 2020-04-30 17:39:27 +08:00 committed by GitHub
parent aea0d6deeb
commit fc5d6b0193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,12 +142,13 @@ async def contact_chat(context):
except: except:
await context.edit('出错了呜呜呜 ~ 请尝试手动加入 @PagerMaid_Modify') await context.edit('出错了呜呜呜 ~ 请尝试手动加入 @PagerMaid_Modify')
return True return True
await sleep(3)
await context.client.send_message( await context.client.send_message(
'PagerMaid_Modify', 'PagerMaid_Modify',
message message
) )
notification = await context.edit('您已成功加入 [Pagermaid-Modify](https://github.com/xtaodada/PagerMaid-Modify/) 用户群。') notification = await context.edit('您已成功加入 [Pagermaid-Modify](https://github.com/xtaodada/PagerMaid-Modify/) 用户群。')
await sleep(.10) await sleep(5)
await notification.delete() await notification.delete()