Fix Telegram edit fallback

This commit is contained in:
jxxghp
2026-06-29 22:48:13 +08:00
parent 4d30dee74c
commit 73d5c95f4e
3 changed files with 140 additions and 26 deletions

View File

@@ -21,6 +21,10 @@ from app.utils.structures import DictUtils
class TelegramModule(_ModuleBase, _MessageBase[Telegram]):
"""
Telegram 通知模块,负责模块生命周期、消息解析和通知发送。
"""
def init_module(self) -> None:
"""
初始化模块
@@ -32,6 +36,9 @@ class TelegramModule(_ModuleBase, _MessageBase[Telegram]):
@staticmethod
def get_name() -> str:
"""
获取模块名称
"""
return "Telegram"
@staticmethod
@@ -75,6 +82,9 @@ class TelegramModule(_ModuleBase, _MessageBase[Telegram]):
return True, ""
def init_setting(self) -> Tuple[str, Union[str, bool]]:
"""
获取模块初始化配置项。
"""
pass
@staticmethod