nonebot2/tests/plugins/param/param_arg.py
2023-06-24 14:47:35 +08:00

15 lines
296 B
Python

from nonebot.adapters import 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