byomkesh462 / Twideo

Simple Telegram Bot for downloading videos from Twitter via their links

Home Page:https://t.me/twideo_bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twideo: Simple Telegram Bot for downloading videos from Twitter

Setting up your environment

  1. Download Rust.
  2. Create a new bot using @Botfather to get a token in the format 123456789:blablabla.
  3. Get an twitter access token.
  4. Install PostgreSQL database
  5. Initialise the TWITTER_BEARER_TOKEN, TELOXIDE_TOKEN and DATABASE_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.
  1. 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:

example

This bot also supports Inline mode:

inline-example

About

Simple Telegram Bot for downloading videos from Twitter via their links

https://t.me/twideo_bot


Languages

Language:Rust 90.4%Language:Python 9.4%Language:Procfile 0.2%