From 756087c9f124810be9ebc0a54cb89cd447d6f215 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 25 Feb 2025 01:39:34 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=89=A9=E5=B1=95=20Platfo?= =?UTF-8?q?rmAdapterType=EF=BC=8C=E6=94=AF=E6=8C=81=20Telegram=E3=80=81WeC?= =?UTF-8?q?om=20=E5=92=8C=20Lark=20=E9=80=82=E9=85=8D=E5=99=A8=20#601?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/star/filter/platform_adapter_type.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/astrbot/core/star/filter/platform_adapter_type.py b/astrbot/core/star/filter/platform_adapter_type.py index 139fb5a3..17bffcf3 100644 --- a/astrbot/core/star/filter/platform_adapter_type.py +++ b/astrbot/core/star/filter/platform_adapter_type.py @@ -9,13 +9,19 @@ class PlatformAdapterType(enum.Flag): QQOFFICIAL = enum.auto() VCHAT = enum.auto() GEWECHAT = enum.auto() - ALL = AIOCQHTTP | QQOFFICIAL | VCHAT | GEWECHAT + TELEGRAM = enum.auto() + WECOM = enum.auto() + LARK = enum.auto() + ALL = AIOCQHTTP | QQOFFICIAL | VCHAT | GEWECHAT | TELEGRAM | WECOM | LARK ADAPTER_NAME_2_TYPE = { "aiocqhttp": PlatformAdapterType.AIOCQHTTP, "qq_official": PlatformAdapterType.QQOFFICIAL, "vchat": PlatformAdapterType.VCHAT, - "gewechat": PlatformAdapterType.GEWECHAT + "gewechat": PlatformAdapterType.GEWECHAT, + "telegram": PlatformAdapterType.TELEGRAM, + "wecom": PlatformAdapterType.WECOM, + "lark": PlatformAdapterType.LARK } class PlatformAdapterTypeFilter(HandlerFilter):