📍 尝试修复无法退出群组的问题

This commit is contained in:
xtaodada 2020-04-02 09:18:28 +08:00
parent 21d9ad9733
commit d6a20fd458
No known key found for this signature in database
GPG Key ID: 39EFACA711DF5D8C

View File

@ -111,7 +111,7 @@ async def leave(context):
user_id=context.sender_id user_id=context.sender_id
)) ))
except ChatIdInvalidError: except ChatIdInvalidError:
await bot(LeaveChannelRequest(chatid)) await bot(LeaveChannelRequest(context.chat_id))
else: else:
await context.edit("出错了呜呜呜 ~ 当前聊天不是群聊。") await context.edit("出错了呜呜呜 ~ 当前聊天不是群聊。")