bot: inline keyboard, channel posting, format switch, abuse subscribe; sources: own TG channels; hide keys tag
This commit is contained in:
@@ -179,6 +179,13 @@ SOURCES_BASE = [
|
||||
S("tg_openai", "forum", "html", "https://t.me/s/openai", "tg_web", ("telegram",)),
|
||||
S("tg_huggingface", "forum", "html", "https://t.me/s/huggingface", "tg_web", ("telegram",)),
|
||||
]
|
||||
# ---------- свои каналы (проверены 26.10.26) ----------
|
||||
EXTRA4 = [
|
||||
{"name": "tg_alstack", "category": "community", "kind": "html",
|
||||
"url": "https://t.me/s/AlStack", "adapter": "tg_web", "tags": ["telegram", "own"], "limit": 20},
|
||||
{"name": "tg_abuz_ai_soft_posts", "category": "abuse", "kind": "html",
|
||||
"url": "https://t.me/s/Abuz_ai_soft", "adapter": "tg_web", "tags": ["telegram", "abuse", "own"], "limit": 20},
|
||||
]
|
||||
|
||||
def _dedup(rows):
|
||||
seen, out = set(), []
|
||||
@@ -190,7 +197,7 @@ def _dedup(rows):
|
||||
return out
|
||||
|
||||
|
||||
SOURCES = _dedup(SOURCES_BASE + [Source(**d) for d in EXTRA] + [Source(**d) for d in EXTRA2] + [Source(**d) for d in EXTRA3] + [Source(**d) for d in ABUSE_LIVE])
|
||||
SOURCES = _dedup(SOURCES_BASE + [Source(**d) for d in EXTRA] + [Source(**d) for d in EXTRA2] + [Source(**d) for d in EXTRA3] + [Source(**d) for d in ABUSE_LIVE] + [Source(**d) for d in EXTRA4])
|
||||
|
||||
BY_NAME = {s.name: s for s in SOURCES}
|
||||
CATEGORIES = sorted({s.category for s in SOURCES})
|
||||
|
||||
Reference in New Issue
Block a user