Simple bot that allows to upvote and downvote photos, videos and overall text messages, e.g. memes.
It also downloads videos from TikTok, VK, Reddit & Instagram automatically. This works pretty inconsistently and if you know a good way to mitigate that - please help me in Issues. In order to download from Reddit 18+ or Insta consistently, add cookies extracted using this plugin to db/cookies.txt.
Just add @mediarater_bot to your group and give it admin permissions.
Get from GitHub Container Registry or build from sources.
You have to specify TELEGRAM_MEDIA_RATER_BOT_API env variable.
If media downloads must go through a proxy, set TELEGRAM_MEDIA_RATER_PROXY to a proxy URL supported by yt-dlp and gallery-dl, for example http://proxy:8080 or socks5://user:pass@127.0.0.1:1080.
On top of TELEGRAM_MEDIA_RATER_BOT_API variable, you need to have yt-dlp installed and have the binary in PATH.
There should be also gallery-dl, ffmpeg, python and tesseract-ocr installed. For screenshot duplicate detection, put frozen_east_text_detection.pb either next to binary or into models/ folder.
Please, refer to Dockerfile and see what gets apt installed.
Is not tested, but should work perfectly fine.
TELEGRAM_MEDIA_RATER_FORWARD environment variable in format long>long;long>long
where first part is to forward from where (e.g. chat id) to where (e.g. channel id)