mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-25 18:04:10 +00:00
🐛 修复用户邀请识别错误的问题
This commit is contained in:
parent
4fc6f901f7
commit
8c12237e85
@ -46,8 +46,8 @@ class BotJoiningGroupsVerification(Plugin):
|
||||
logger.error(f"获取信息出现错误 {repr(exc)}")
|
||||
elif config.join_groups == JoinGroups.ALLOW_AUTH_USER:
|
||||
try:
|
||||
user_info = await self.user_service.get_user_by_id(chat.id)
|
||||
await self.cookies_service.get_cookies(user_info.user_id, user_info.region)
|
||||
user_info = await self.user_service.get_user_by_id(from_user.id)
|
||||
await self.cookies_service.get_cookies(from_user.id, user_info.region)
|
||||
except (UserNotFoundError, CookiesNotFoundError):
|
||||
logger.warning(f"用户 {from_user.full_name}[{from_user.id}] 邀请请求被拒绝")
|
||||
except Exception as exc:
|
||||
|
Loading…
Reference in New Issue
Block a user