Hoshinonyaruko / Gensokyo

基于qq官方api开发的符合onebot标准的golang实现,轻量、原生跨平台.
GNU General Public License v3.0
667 stars 44 forks source link

真寻无法获取ob11拓展字段 #370

Closed YingLing3 closed 7 months ago

YingLing3 commented 7 months ago

打印的event如下,并没有拓展字段,是因为什么原因呢

@event_preprocessor
async def hook_befor_message(bot: Bot,event: MessageEvent):
    print(event.json())

  {"time": 1712627444, "self_id": xxxxxxxxx, "post_type": "message", "sub_type": "normal", "user_id": 447197369, "message_type": "group", "message_id": 832625246, "message": [{"type": "text", "data": {"text": "\u6392\u961f"}}], "original_message": [{"type": "at", "data": {"qq": "xxxxxxxxx"}}, {"type": "text", "data": {"text": " \u6392\u961f"}}], "raw_message": "[CQ:at,qq=xxxxxxxxx] \u6392\u961f", "font": 0, "sender": {"user_id": 447197369, "nickname": "", "sex": "0", "age": null, "card": null, "area": "0", "level": "0", "role": "member", "title": null, "tiny_id": ""}, "to_me": true, "reply": null, "group_id": 864789548, "anonymous": null, "message_seq": 0}
YingLing3 commented 7 months ago

close native_ob11