/Media-bot

A telegram bot for viewing media from reddit links inside the messenger

Primary LanguagePythonMIT LicenseMIT

Reddit media bot

MIT Licence

A telegram user bot which replaces reddit links in messages with the actual media file from the reddit post (video, gif, image).

For instance, when sending a link to a reddit post with a video, the bot will download the video, upload it to telegram, and replace the reddit link message with the actual video file.

Features

  • Support for messages shared via BaconReader
  • Support for other meme source links:
    • Imgur
    • Youtube
    • Gfycat
    • Giphy

Installation and Starting

This bot is developed for Linux.

Dependencies:

  • poetry to manage and install dependencies.
  1. Clone the repository:

    git clone git@github.com:nukesor/reddit-media-bot redditbot && cd redditbot
  2. Execute just setup to install all dependencies.

  3. Run just run to create a default config ~/.config/archivebot.toml

  4. Adjust the configuration

  5. Start the bot via just run

Example URLs

The following are example urls that can be used to debug all possible medias.

Reddit Web Links

v.reddit.com

i.reddit.com

imgur.com

i.imgur.com

gyfcat.com

youtube.com

media.giphy.com

Direct URLs

i.reddit.com

i.imgur.com

imgur.com

gyfcat.com

youtube.com

media.giphy.com