mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 08:02:32 +08:00
15 lines
294 B
Python
15 lines
294 B
Python
from nonebot.adapters import Event, Message
|
|
from nonebot.params import Arg, ArgStr, ArgEvent
|
|
|
|
|
|
async def arg(key: Message = Arg()) -> Message:
|
|
return key
|
|
|
|
|
|
async def arg_str(key: str = ArgStr()) -> str:
|
|
return key
|
|
|
|
|
|
async def arg_event(key: Event = ArgEvent()) -> Event:
|
|
return key
|