A Telegram bot designed to bypass lksfy.com shortened links. It uses a hybrid approach combining fast HTTP requests with a headless browser (Playwright) to navigate redirect chains and solve Cloudflare Turnstile CAPTCHAs.
- Hybrid Bypass Engine: Uses
requestsfor speed on standard redirects and switches toplaywright(Chromium) only when a CAPTCHA is detected. - CAPTCHA Solver: Automatically handles Cloudflare Turnstile challenges.
- Cookie Persistence: Maintains session state across both engines to ensure successful navigation through long redirect chains.
- Dockerized: Ready for deployment on platforms like Heroku using Docker containers.
- Formatted Output: Returns the final destination link in a clean, structured message.
- Python 3.12+
- Playwright (and Chromium browser binary)
- Docker (for deployment)
-
Clone the repository:
git clone <your-repo-url> cd <your-repo-folder>
-
Install Python dependencies:
pip install -r requirements.txt
-
Install Playwright browsers:
playwright install chromium
-
Set Environment Variables: Create a
.envfile or export the variable in your shell:export BOT_TOKEN="your_telegram_bot_token"
-
Run the bot:
python bot.py
This project uses heroku.yml and a Dockerfile because standard Buildpacks often struggle with Playwright dependencies.
-
Create a Heroku App:
heroku create your-app-name
-
Set the Stack to Container:
heroku stack:set container
-
Set Config Vars: Go to your Heroku Dashboard -> Settings -> Config Vars, or use CLI:
heroku config:set BOT_TOKEN="your_telegram_bot_token" -
Push to Heroku:
git push heroku main
- Start a chat with your bot.
- Send
/startto verify it's running. - Send any link containing
lksfy.com. - The bot will reply "Bypassing..." and may take a few minutes if multiple CAPTCHAs are encountered.
- Once finished, it will reply with the original and bypassed link.
This tool is for educational purposes only.