Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.62 KB

File metadata and controls

29 lines (22 loc) · 1.62 KB

RaterBot

Simple bot that allows to upvote and downvote photos, videos and overall text messages, e.g. memes.

Automatic download

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.

Usage

Hosted by me

Just add @mediarater_bot to your group and give it admin permissions.

Self-hosted

Docker

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.

As standalone binary

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 and python installed. For duplicate detection, put vision_model_quantized.onnx either next to binary or into models/ folder. Please, refer to Dockerfile and see what gets apt installed.

Arm64 (Apple M1 and other)

Is not tested, but should work perfectly fine.

Configuration

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)