mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-11-03 16:36:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			325 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			325 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from nonebot.adapters import Event
 | 
						|
from nonebot.matcher import Matcher
 | 
						|
from nonebot.params import Received, LastReceived
 | 
						|
 | 
						|
 | 
						|
async def matcher(m: Matcher) -> Matcher:
 | 
						|
    return m
 | 
						|
 | 
						|
 | 
						|
async def receive(e: Event = Received("test")) -> Event:
 | 
						|
    return e
 | 
						|
 | 
						|
 | 
						|
async def last_receive(e: Event = LastReceived()) -> Event:
 | 
						|
    return e
 |