Skip to content

Telegram bot that detects links to (some) websites to extract videos and send them directly.

Notifications You must be signed in to change notification settings

strander-db/memosybot

Repository files navigation

Memosy Bot

Telegram bot that detects links to (some) websites to extract videos and send them directly.

  • When used in a private chat, it just responds with a video message.
  • When added to a group chat, it detects links to supported websites, deletes the original message (if it has the required permission, of course), and posts a video message with the name of the sender, original link, and any extra text that was in that message

Why?

Link preview in Telegram ususally sucks for videos, and opening a separate website/app for a meme you friends sent to you is frustrating, especially on a mobile device

Currently supported websites

Dependencies

Python 3

https://www.python.org

FFmpeg

https://ffmpeg.org

Installation depends on the system, in the end you need to make sure that ffmpeg console command is available

MediaInfo

Instructions are available here, but they weren't enough for me on MacOS

You can download a library file (dll, dylib, etc... depending on the platform) from https://mediaarea.net/en/MediaInfo/Download and put it in the project's root folder

Python packages

Python packages are listed in requirements.txt, to automatically install them run pip install -r requirements.txt

Usage

To just run the bot, run python memosybot.py

First run will ask you for the bot token and debug chat id,

On Unix systems, you can run autorun.sh to run the bot in the background. Don't forget to chmod +x autorun.sh!

About

Telegram bot that detects links to (some) websites to extract videos and send them directly.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published