git clone https://github.com/mewmix/vxtwitter-invidious-telegram-bot.git
Navigate to the cloned directory:
cd vxtwitter-invidious-telegram-bot
Install the required Python packages:
pip install -r requirements.txt
Create a new bot in Telegram and obtain the bot token. For instructions on how to do this, see Telegram's bot father.
Create a new .env file in the project directory and add the following line:
TELEGRAM_TOKEN=your_bot_token_here
Replace your_bot_token_here with the bot token obtained in step 4.
Run the bot:
python bot.py
That's it! You should now be able to use the bot to convert YouTube and Twitter links to alternative URLs in your Telegram conversations.
To trigger the url conversion just tag the bot in conversation. For twitter links they will be automatically handled and the original message will be deleted after being processed. The user that sent the message will be tagged upon its completion.
If you encounter any issues, please refer to the project's Github page for further information or contact me on telegram.
Talk to bot father - make sure Group Privacy is Off & The Bot Requests Delete Posts in Admin Rights