fix ica_typing

This commit is contained in:
shenjack 2024-05-04 14:16:09 +08:00
parent 6335e73a15
commit 1860321b36
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -91,6 +91,7 @@ class IcaNewMessage:
""" """
def reply_with(self, message: str) -> IcaSendMessage: def reply_with(self, message: str) -> IcaSendMessage:
"""回复这条消息""" """回复这条消息"""
...
def as_deleted(self) -> IcaDeleteMessage: def as_deleted(self) -> IcaDeleteMessage:
... ...
def __str__(self) -> str: def __str__(self) -> str:
@ -113,15 +114,18 @@ class IcaNewMessage:
@property @property
def is_room_msg(self) -> bool: def is_room_msg(self) -> bool:
"""是否是群聊消息""" """是否是群聊消息"""
...
@property @property
def is_chat_msg(self) -> bool: def is_chat_msg(self) -> bool:
"""是否是私聊消息""" """是否是私聊消息"""
...
@property @property
def room_id(self) -> IcaType.RoomId: def room_id(self) -> IcaType.RoomId:
""" """
如果是群聊消息, 返回 (-群号) 如果是群聊消息, 返回 (-群号)
如果是私聊消息, 返回 对面qq 如果是私聊消息, 返回 对面qq
""" """
...
class IcaClient: class IcaClient:
@ -156,10 +160,13 @@ class IcaClient:
def debug(self, message: str) -> None: def debug(self, message: str) -> None:
"""向日志中输出调试信息""" """向日志中输出调试信息"""
...
def info(self, message: str) -> None: def info(self, message: str) -> None:
"""向日志中输出信息""" """向日志中输出信息"""
...
def warn(self, message: str) -> None: def warn(self, message: str) -> None:
"""向日志中输出警告信息""" """向日志中输出警告信息"""
...
class TailchatReciveMessage: class TailchatReciveMessage: