mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
添加一些tailchat的py api (虽说还没实际实现
This commit is contained in:
parent
b3e2da9df6
commit
427b113312
|
@ -162,11 +162,39 @@ class IcaClient:
|
||||||
"""向日志中输出警告信息"""
|
"""向日志中输出警告信息"""
|
||||||
|
|
||||||
|
|
||||||
|
class TailchatReciveMessage:
|
||||||
|
"""
|
||||||
|
Tailchat 接收到的新消息
|
||||||
|
"""
|
||||||
|
@property
|
||||||
|
def id(self) -> TailchatType.MessageId:
|
||||||
|
...
|
||||||
|
@property
|
||||||
|
def content(self) -> str:
|
||||||
|
...
|
||||||
|
@property
|
||||||
|
def sender_id(self) -> TailchatType.UserId:
|
||||||
|
...
|
||||||
|
@property
|
||||||
|
def is_from_self(self) -> bool:
|
||||||
|
...
|
||||||
|
@property
|
||||||
|
def is_reply(self) -> bool:
|
||||||
|
...
|
||||||
|
@property
|
||||||
|
def group_id(self) -> TailchatType.GroupId:
|
||||||
|
...
|
||||||
|
@property
|
||||||
|
def converse_id(self) -> TailchatType.ConverseId:
|
||||||
|
...
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class TailchatClient:
|
class TailchatClient:
|
||||||
"""
|
"""
|
||||||
Tailchat 的客户端
|
Tailchat 的客户端
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def debug(self, message: str) -> None:
|
def debug(self, message: str) -> None:
|
||||||
"""向日志中输出调试信息"""
|
"""向日志中输出调试信息"""
|
||||||
def info(self, message: str) -> None:
|
def info(self, message: str) -> None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user