mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-30 22:46:40 +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
 |