Skip to content

Commit

Permalink
test🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles-Hello committed Aug 16, 2023
1 parent 9b8a9b2 commit 7aa6757
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
11 changes: 11 additions & 0 deletions id.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{"extrainfo":"
<sec_msg_node>\\n\\t<alnode>\\n\\t\\t<fr>2</fr>\\n\\t</alnode>\\n</sec_msg_node>\\n
<msgsource>\\n\\t<silence>1</silence>\\n\\t<membercount>255</membercount>\\n\\t<signature>
v1_OLvB7bI7</signature>\\n\\t<tmp_node>\\n\\t\\t<publisher-id></publisher-id>\\n\\t</tmp_node>\\n</msgsource>\\n","filepath":"","isSendMsg":0,"message":"
<msg>
<emoji fromusername= \\"wxid_ludsalz9bgp322\\" tousername= \\"43228505841@chatroom\\" type= \\"2\\" idbuffer= \\"media:0_0\\" md5= \\"1607d2d3abe7fd142d8a47bb82f6e385\\" len= \\"20840\\" productid= \\"\\" androidmd5= \\"1607d2d3abe7fd142d8a47bb82f6e385\\"
androidlen= \\"20840\\" s60v3md5= \\"1607d2d3abe7fd142d8a47bb82f6e385\\" s60v3len= \\"20840\\" s60v5md5= \\"1607d2d3abe7fd142d8a47bb82f6e385\\" s60v5len= \\"20840\\" cdnurl= \\"http://vweixinf.tc.qq.com/110/20401/stodownload?m=1607d2d3abe7fd142d8a47bb82f6e385&amp;filekey=3043020101042f302d02016e040253480420313630376432643361626537666431343264386134376262383266366533383502025168040d00000004627466730000000131&amp;hy=SH&amp;storeid=323032303039303431393537323930303039366663313264623939663239613764393466303930303030303036653031303034666231&amp;ef=1&amp;bizid=1022\\" designerid= \\"\\"
thumburl= \\"\\" encrypturl= \\"http://vweixinf.tc.qq.com/110/20402/stodownload?m=593c1101b792decc134c4bf36ee8f990&amp;filekey=3043020101042f302d02016e040253480420353933633131303162373932646563633133346334626633366565386639393002025170040d00000004627466730000000131&amp;hy=SH&amp;storeid=323032303039303431393537323930303061346230393264623939663239613764393466303930303030303036653032303034666232&amp;ef=2&amp;bizid=1022\\" aeskey= \\"a4207347183d45fcbefe9bba6d000191\\" externurl= \\"http://vweixinf.tc.qq.com/110/20403/stodownload?m=d2756913c0ea725210531b4412a7450c&amp;filekey=3043020101042f302d02016e040253480420643237353639313363306561373235323130353331623434313261373435306302020f20040d00000004627466730000000131&amp;hy=SH&amp;storeid=323032303039303431393537323930303062333836613264623939663239613764393466303930303030303036653033303034666233&amp;ef=3&amp;bizid=1022\\" externmd5= \\"0bc26967acaea1c1c9e784d3a00384ea\\" width= \\"300\\" height= \\"115\\" tpurl= \\"\\"
tpauthkey= \\"\\" attachedtext= \\"\\" attachedtextcolor= \\"\\" lensid= \\"\\" emojiattr= \\"\\" linkid= \\"\\" desc= \\"\\"></emoji>
</msg>","msgid":1808215118870293793,"pid":184400,"self":"wxid_xq2w7jl6cbi811","sender":"43228505841@chatroom","sign":"d3f4881c234df93f914937a4703ae751","thumb_path":"","time":"2023-08-16
10:05:57","timestamp":1692151557,"type":47,"wxid":"wxid_ludsalz9bgp322"}\n
5 changes: 3 additions & 2 deletions wechatbot_client/com_wechat/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ def handle_text(self, msg: WechatMessage) -> E:
user_id=msg.wxid,
group_id=msg.sender,
)
if msg.isSendMsg:
msg.wxid = msg.self
# if msg.isSendMsg:
# msg.wxid = msg.selfu
return PrivateMessageEvent(
id=event_id,
time=msg.timestamp,
Expand All @@ -172,6 +172,7 @@ def handle_text(self, msg: WechatMessage) -> E:
message=message,
alt_message=str(message),
user_id=msg.wxid,
k ="少时诵诗书"
)

# 获取at
Expand Down
3 changes: 2 additions & 1 deletion wechatbot_client/onebot12/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class PrivateMessageEvent(MessageEvent):
"""私聊消息"""

detail_type: Literal["private"] = "private"

k:str

class GroupMessageEvent(MessageEvent):
"""群消息"""
Expand All @@ -74,6 +74,7 @@ class GroupMessageEvent(MessageEvent):
"""群聊id"""



class NoticeEvent(Event):
"""通知事件"""

Expand Down

0 comments on commit 7aa6757

Please sign in to comment.