Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加sender字段传递用户数据 #598

Merged
merged 5 commits into from
Nov 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
添加sender字段传递用户数据
  • Loading branch information
jiluoQAQ authored Nov 6, 2023
commit 4048ec4f0abef39480fccf6ac58a25cb855e7647
3 changes: 2 additions & 1 deletion GenshinUID/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, List, Literal, Optional
from typing import Any, List, Literal, Optional, Dict

from msgspec import Struct

Expand All @@ -15,6 +15,7 @@ class MessageReceive(Struct):
user_type: Literal['group', 'direct', 'channel', 'sub_channel'] = 'group'
group_id: Optional[str] = None
user_id: Optional[str] = None
sender: Optional[Dict[str, Any]] = None
user_pm: int = 3
content: List[Message] = []

Expand Down