Twideo: Simple Telegram Bot for downloading videos from Twitter
Setting up your environment
- Download Rust.
- Create a new bot using @Botfather to get a token in the format
123456789:blablabla
. - Get an twitter access token.
- Install PostgreSQL database
- Initialise the
TWITTER_BEARER_TOKEN
,TELOXIDE_TOKEN
andDATABASE_URL
environmental variable to your token:
# Unix-like
$ export TELOXIDE_TOKEN=<Your token here>
$ export TWITTER_BEARER_TOKEN=<Your bearer token here>
$ export DATABASE_URL=<Your database url>
# Windows
$ set TELOXIDE_TOKEN=<Your token here>
$ set TWITTER_BEARER_TOKEN=<Your bearer token here>
$ set DATABASE_URL=<Your database url>
Of course you can create a `.env` file and set your environmental variables there.
- Run
cargo run
and enjoy the life :)
Getting Started
Just copy the link of the tweet and send it to the bot, It will convert tweet to telegram message:
This bot also supports Inline mode: