🎨 规范函数的命名

This commit is contained in:
KimigaiiWuyi 2024-12-15 07:40:19 +08:00
parent 3c6b252039
commit d5b5adadcd
2 changed files with 2 additions and 2 deletions

View File

@ -181,5 +181,5 @@ async def handle_get_subscribe(bot: Bot, ev: Event):
datas = await gs_subscribe.get_subscribe('订阅测试')
if datas:
for subscribe in datas:
await subscribe.send_msg(f'[订阅] {subscribe.extra_message}')
await subscribe.send(f'[订阅] {subscribe.extra_message}')
await bot.send('查看订阅成功!')

View File

@ -28,7 +28,7 @@ class Subscribe(BaseModel, table=True):
user_type: str = Field(title='发送类型', default=None)
extra_message: Optional[str] = Field(title='额外消息', default=None)
async def send_msg(
async def send(
self,
reply: Optional[
Union[Message, List[Message], List[str], str, bytes]