From 427b1133124f36758d1cd1a68c4d7182015ea873 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 30 Mar 2024 15:31:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=BA=9Btailchat?= =?UTF-8?q?=E7=9A=84py=20api=20(=E8=99=BD=E8=AF=B4=E8=BF=98=E6=B2=A1?= =?UTF-8?q?=E5=AE=9E=E9=99=85=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/ica_typing.py | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/ica-rs/ica_typing.py b/ica-rs/ica_typing.py index 95ca56e..75c8984 100644 --- a/ica-rs/ica_typing.py +++ b/ica-rs/ica_typing.py @@ -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: """ Tailchat 的客户端 """ - + def debug(self, message: str) -> None: """向日志中输出调试信息""" def info(self, message: str) -> None: