kk
This commit is contained in:
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user