GraiaProject / Application

一个设计精巧, 协议实现完备的, 基于 mirai-api-http 的即时聊天软件自动化框架.
https://graia-document.vercel.app/
GNU Affero General Public License v3.0
438 stars 63 forks source link

如何获取群消息的发送者的QQ号 #40

Closed RiotGamesU closed 4 years ago

RiotGamesU commented 4 years ago

实在是找不到方法

YueDeYue commented 4 years ago

member.id

RiotGamesU commented 4 years ago

member.id

你好 可否细说 谢谢

@bcc.receiver(GroupMessage)
async def group_message_handler(app: GraiaMiraiApplication, message: MessageChain, group: gp.Group):
    print() # app, message, group的源码里都找不到对应的方法