Tg Search
Searches public Telegram channels and groups by keyword and returns up to 50 matching results as JSON using an authorized Telethon session.
Latest: v1.0.0
Initial release of tg-search.
- Search public Telegram channels and groups by keyword.
- Returns up to a specified number of results as JSON.
- Requires an already-authorized Telethon session on this VPS.
- Supports both English and non-English queries.
- Only public, searchable channels and groups are included.
fork of@kirillvrnz/tg-search(0.1.0)
tg_search
Search public Telegram channels and groups by keyword using an already-authorized Telethon session on this VPS.
What it does
- Runs global Telegram search for public channels/groups matching a query
- Returns up to
limitresults as JSON
Command executed
/usr/local/bin/tg_search "<query>" <limit>
Inputs
- query (string, required): e.g. "crypto", "здоровье", "ai agents"
- limit (int, optional, default 10, max 50)
Output (JSON)
[ { "type": "channel|group", "title": "...", "username": "...", "id": 123456789 }, ... ]
Notes / limitations
- Only public channels/groups discoverable by Telegram search.
- No access to private groups/chats without an invite.
usernamecan be null if there is no public @username.
