This is a Telegram bot that allows users to download videos from Twitter by sending a tweet URL. The bot extracts the video from the tweet and sends it back to the user.
- Download videos from Twitter by sending a tweet URL
- Automatically selects the highest resolution video available
- Easy to set up and use
- Node.js installed on your system
- A Telegram bot token obtained from the BotFather
- A Twitter Bearer token for authentication
- Clone the repository or download the source code files.
- Install the required dependencies by running the following command:
npm install
- Replace 'YOUR_TELEGRAM_BOT_TOKEN' with your actual Telegram bot token in the code.
- Replace 'YOUR_TWITTER_BEARER_TOKEN' with your actual Twitter Bearer token in the code.
- Run the bot using the following command:
node index.js
- Start a conversation with your Telegram bot.
- Send a tweet URL containing a video to the bot.
- The bot will download the video and send it back to you as a response.
- node-telegram-bot-api: A library for interacting with the Telegram Bot API.
- https: A built-in Node.js module for making HTTPS requests.
- fs: A built-in Node.js module for file system operations.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.
This bot was created using the node-telegram-bot-api library. Thanks to the Twitter API for providing access to tweet data.
Please note that downloading videos from Twitter may be subject to their terms of service and copyright policies. Use this bot responsibly and respect the rights of content creators.