mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Merge pull request #112 from paul-nameless/implement-msg-types
Implement messageBasicGroupChatCreate and messageBasicGroupChatCreate msg types
This commit is contained in:
commit
af47b1e7c8
1 changed files with 7 additions and 1 deletions
|
@ -567,9 +567,15 @@ def parse_content(content: Dict[str, Any]) -> str:
|
|||
if msg.is_text:
|
||||
return content["text"]["text"]
|
||||
|
||||
_type = content["@type"]
|
||||
|
||||
if _type == "messageBasicGroupChatCreate":
|
||||
return "[created the group]"
|
||||
if _type == "messageChatAddMembers":
|
||||
return "[joined the group]"
|
||||
|
||||
if not msg.content_type:
|
||||
# not implemented
|
||||
_type = content["@type"]
|
||||
return f"[{_type}]"
|
||||
|
||||
fields = dict(
|
||||
|
|
Loading…
Reference in a new issue