- Extracts Txt from AppxV2 & AppxV3 platforms
- Supports Khan GS, ClassPlus, and PW (PhysicsWallah)
- Token-based and login-based extraction supported
- Clean UI with Telegram buttons (use
/startto begin) - Admin-only premium controls available in
modules/
Just send /start — all features are handled via buttons.
You need to set the following variables for the bot to run. These are read using os.environ.get() in the code.
API_ID=123456 # Get from https://my.telegram.org
API_HASH=your_api_hash # Get from https://my.telegram.org
BOT_TOKEN=your_bot_token # Get from https://t.me/BotFather
OWNER_ID=123456789 # Your Telegram user ID
SUDO_USERS=123456789 987654321 # Space-separated admin user IDs
MONGO_URL=mongodb+srv://user:[email protected]/... # MongoDB connection URI
CHANNEL_ID=-100xxxxxxxxxx # Telegram channel ID with -100 prefixWhere to get these?
•API_ID&API_HASH→ my.telegram.org → API Development Tools
•BOT_TOKEN→ @BotFather
•OWNER_ID,SUDO_USERS→ Get your Telegram ID from @userinfobot
•CHANNEL_ID→ Right-click channel > Copy ID (if bot is admin)
•MONGO_URL→ From your MongoDB Atlas project dashboard
1. Fork this repo
2. Create a new Heroku app
3. Set buildpacks: heroku/python
4. Add env variables: API_ID, API_HASH, BOT_TOKEN, etc.
5. Deploy your app and scale worker to 1sudo apt update && sudo apt install git python3-pip -y
git clone https://github.com/Popeye68/TXT-EXTRACTOR
cd TXT-EXTRACTOR
pip3 install -r requirements.txt
# Set your API credentials
export API_ID=123456
export API_HASH=your_api_hash
export BOT_TOKEN=your_bot_token
# Run the bot
python3 bot.pyFeel free to fork this repo, add your own tweaks, and build your own version.
Made with ❤️ by Spidy





