SmartTgDocs is your ultimate Telegram Bot API companion! 📚 Search methods, types, and properties instantly within Telegram using inline queries. Stay secure with built-in bot token protection 🔒 and enjoy a lightning-fast, interactive experience ⚡️.
- 🔍 Inline Search — Query Telegram Bot API methods/types with
@BotUsername {query}. - 🗂️ Category Filtering — Filter by
botapi,payments,passport,miniappwith!category. - 🌟 Wildcard Search —
*for multiple characters,_for single characters. - 🔗 Deep-Link Formatting — Use
.fto auto-link API symbols. - 🛡️ Bot Token Protection — Detects & deletes valid bot tokens to prevent leaks.
- 🖱️ Interactive Interface — Inline buttons for examples, categories, and navigation.
- ⚡ Lightweight & Fast — Built with
telethon&BeautifulSoupfor efficient scraping.
- Python 3.8+ 🐍
- Telegram Account 📱
- Clone Repo 🌐:
git clone https://github.com/abirxdhack/SmartTgDocs.git - Text Editor ✍️ (VSCode recommended)
git clone https://github.com/abirxdhack/SmartTgDocs.git
cd SmartTgDocspip install -r requirements.txtIncludes: telethon, requests, beautifulsoup4
- Create a Bot 🤖: Talk to @BotFather, send
/newbot, copy the token. - API ID & Hash 🆔: Go to my.telegram.org, create an app to get
API_ID&API_HASH.
Edit config.py:
API_ID = your_api_id
API_HASH = "your_api_hash"
BOT_TOKEN = "your_bot_token"python bot.py✅ On startup:
Bot started: @YourBotUsername
Loaded X documentation entries
Bot is running...
-
/start, /help, /cmds — Welcome message + navigation buttons
-
Inline Query 🔍 —
@YourBotUsername {query}@YourBotUsername Message→Messagetype info@YourBotUsername !payments→ Filter bypayments@YourBotUsername send*→ Wildcard search
- Deep-Link Formatting 🔗:
@YourBotUsername .f $deleteMessages
Auto-links to the deleteMessages method.
-
Wildcard Search ✨:
*= multiple chars,_= single char -
Token Deletion 🛡️: Automatically deletes valid bot tokens
- ⚡ Examples — Quick queries & syntax
- 🔥 Categories — Browse docs categories
- 🔍 Search — Switch to inline query mode
- 🏠 Back/Home — Navigate menus
SmartTgDocs/
├── bot.py # Main bot script
├── config.py # API credentials
├── requirements.txt # Dependencies
└── README.md # This file
- Fork 🍴
- Branch:
git checkout -b feature-branch🌿 - Commit:
git commit -m "Add feature"💾 - Push:
git push origin feature-branch🚀 - Open PR 📬
Follow the existing style and keep code clean.
- Updates Channel: t.me/TheSmartDev
- Developer: @ISmartCoder
- GitHub: github.com/abirxdhack
- Report Issues: GitHub Issues
- Built by @ISmartCoder 💻
- Powered by Telegram Bot API 🌐