by akynazh
A telegram bot for searching and auto-saving.
# Add to your Claude Code skills
git clone https://github.com/akynazh/tg-search-botGuides for using ai agents skills like tg-search-bot.
Last scanned: 8/31/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-08-31T10:35:32.493Z",
"npmAuditRan": true,
"pipAuditRan": false,
"promptInjectionRan": true
}tg-search-bot is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by akynazh. A telegram bot for searching and auto-saving. It has 201 GitHub stars.
Yes. tg-search-bot passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/akynazh/tg-search-bot" and add it to your Claude Code skills directory (see the Installation section above).
tg-search-bot is primarily written in Python. It is open-source under akynazh on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh tg-search-bot against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
A Python 3 Telegram bot for searching video magnet links. It supports collection and export of records, automatic saving to cloud storage, configurable NSFW filtering, proxy support, and AI-powered natural-language understanding for automatic intent, target, and source detection from user input.
record.jsonnext batch, next page, previous page, save item Nintent, target, source, and explain.🔍 Searching: {target}.⏳ Searching ....📄 Search results.✅ Saved successfully.If no AI API is configured, the bot falls back to the original number detection and BT keyword search flow.
flowchart TD
A["1. User input<br/>title / plot / number / genre / performer"] --> B["2. AI understands intent<br/>intent · target · source · explain"]
B --> C["3. Reply 🔍 Searching: target"]
C --> D["4. Select the best crawler / API"]
D --> D1{intent}
D1 -->|number| E["Search by number<br/>index sites"]
D1 -->|performer| F["Performer search"]
D1 -->|title / genre / plot| G["Keyword / BT search"]
E --> H["5. Reply ⏳ Searching ..."]
F --> H
G --> H
H --> I["6. Return magnet links<br/>or BT alternatives"]
I --> J["7. Reply 📄 Search results"]
J --> K["8. Save best magnet to PikPak"]
K --> L["9. Reply ✅ Saved successfully"]
bot.py Main program: config, logging, message handlers, AI flow
ai.py AI intent client using OpenAI-compatible /chat/completions
pikpak.py PikPak official OpenAPI client for login, token refresh, and offline download
database.py Data layer: BotFileDb (JSON records) + BotCacheDb (SQLite cache)
requirements.txt Dependencies
docker-compose.yml One-click deployment
Runtime data is stored under ~/.tg_search_bot/: config.yaml, record.json, cache.db, pikpak_token.json, and log.txt.
Edit ~/.tg_search_bot/config.yaml:
# Required: Telegram chat ID
tg_chat_id:
# Required: Telegram bot token
tg_bot_token:
# Required: use global proxy, 1 = yes, 0 = no
use_proxy:
# Optional: proxy address, required when use_proxy is 1
proxy_addr:
# Required: enable NSFW content, 1 = yes, 0 = no
enable_nsfw: 0
# Optional: PikPak account for auto-saving magnets
pikpak_username:
pikpak_password:
# Optional: AI natural-language search via any OpenAI-compatible API
ai_base_url:
ai_api_key:
ai_model:
# Option 1: Docker deployment
docker-compose up -d
# Option 2: run directly (Python 3.9+)
pip install -r requirements.txt
python3 bot.py
| Command | Description |
|---|---|
/help |
Show help |
/stars |
View collected performers |
/ids |
View collected numbers |
/record |
Export the records file |
Simply send a movie title, keyword, number, plot summary, performer name, or genre. The AI will understand and search automatically.
BT search results are paginated in groups of 5. You can continue with:
next batch / next page / more — show the next pageprevious page — show the previous pagesave item N or save N — save the N-th magnet to PikPakPython 3.9+ is recommended, preferably with a virtual environment:
git clone https://github.com/akynazh/tg-search-bot.git
cd tg-search-bot
python3 -m venv .venv
source ./.venv/bin/activate
pip3 install -r requirements.txt
Thanks to JetBrains for supporting this project.