- Install the latest version of python-telegram-bot:
pip3 install -U python-telegram-bot
- The other required packages can be installed with:
pip3 install requests instaloader SpeechRecognition pydub aiohttp yt-dlp requests-html
- You can login to Instagram using InstaLoader. In terminal, write:
instaloader -l <Instagram username>
I suggest you don't use your personal Instagram account.
-
Put the generated session file in the same directory of
ofantasma.py
. -
In
config.ini
put your bot token, your Instagram username, the admin user IDs and the Transmission parameters. -
You are ready to go! Start the bot using:
python3 ofantasma.py
- fix some Facebook videos apoearing empty on Telegram
- settings refactor
- add a function to check if the bot can send a message, based on settings
- don't load a .py file if the needed config parameters are not set
- if no bot token is set, ask for it in the terminal