mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-26 20:46:39 +00:00 
			
		
		
		
	update docs
This commit is contained in:
		| @@ -6,7 +6,7 @@ from nonebot import on_notice, NoticeSession | ||||
| @on_request('group') | ||||
| async def _(session: RequestSession): | ||||
|     # 判断验证信息是否符合要求 | ||||
|     if session.ctx['comment'] == '暗号': | ||||
|     if session.event.comment == '暗号': | ||||
|         # 验证信息正确,同意入群 | ||||
|         await session.approve() | ||||
|         return | ||||
|   | ||||
		Reference in New Issue
	
	Block a user