This commit is contained in:
2026-01-11 03:24:49 -08:00
parent e608b88062
commit 5985a8306a
13 changed files with 401 additions and 101 deletions

View File

@@ -149,6 +149,30 @@ class Telegram(Provider):
"""
URL = ("t.me", "telegram.me")
@classmethod
def config(cls) -> List[Dict[str, Any]]:
return [
{
"key": "app_id",
"label": "API ID (from my.telegram.org)",
"default": "",
"required": True
},
{
"key": "api_hash",
"label": "API Hash",
"default": "",
"required": True,
"secret": True
},
{
"key": "bot_token",
"label": "Bot Token (optional)",
"default": "",
"secret": True
}
]
def __init__(self, config: Optional[Dict[str, Any]] = None):
super().__init__(config)
telegram_conf = (