Telegram Bot
A telegram bot to download media from Instagram! No API Key or Login Needed!
Requirements
-
You must have python installed (of course)
-
You must install the following modules
pip install python-telegram-bot pip install requests
How to use
- Make sure you installed all the requirements
- Open Telegram, go to @BotFather and create a new Bot.
- Copy the Bot Access Token.
- Open the main.py file using any text editor, go down to line 127 and paste your token there.
- Save the file and run the script!
How it works
This bot uses the Instagram public GraphQL API. When a link is sent to the bot, a request to the API is sent and a json response is received. The bot will get every media included in the given post and send it to the user.
NOTE
Please note that the API requests will not work (aka the bot wouldn't be able to send the media) if you are hosting the bot on a platform like Heroku or PythonAnyWhere. If you are planning to keep the bot running 24/7 you must keep it running on your local machine forever or on a Raspberry Pi. Or just find an alternative API (most of them are paid ones)