mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-31 15:06:42 +00:00 
			
		
		
		
	doc: 添加session.ctx的说明
This commit is contained in:
		| @@ -201,3 +201,7 @@ async def _(session: CommandSession): | ||||
| ``` | ||||
|  | ||||
| 观察看看有什么不同,以及它的回复是否符合我们对代码的理解。如果成功的话,此时你已经完成了一个**可交互的**天气查询命令的雏形,只需要再接入天气 API 就可以真正投入使用了! | ||||
|  | ||||
| ## 获取对话细节 | ||||
|  | ||||
| 如果我们需要获取对话中更多的细节,如发送者的群名片、群专属头衔、性别等参数,可以通过 `session.ctx` 获取原始的数据。数据格式详见[CQHTTP文档](https://cqhttp.cc/docs/#/Post?id=%E4%BA%8B%E4%BB%B6%E5%88%97%E8%A1%A8)。 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user