mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-30 22:46:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			303 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			303 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from nonebot.adapters import Event, Message
 | |
| from nonebot.params import Arg, ArgStr, ArgPlainText
 | |
| 
 | |
| 
 | |
| async def arg(key: Message = Arg()) -> Message:
 | |
|     return key
 | |
| 
 | |
| 
 | |
| async def arg_str(key: str = ArgStr()) -> str:
 | |
|     return key
 | |
| 
 | |
| 
 | |
| async def arg_plain_text(key: str = ArgPlainText()) -> str:
 | |
|     return key
 |