Some useful telegram bots

dm9pZCAq 8946c5698e README.md: add info about docker пре 6 месеци
src 2fefc06940 add dl_bot, add docker stuff, some fixes пре 6 месеци
tests 07a0bdbf73 fix byte_convertor пре 1 година
.dockerignore 2fefc06940 add dl_bot, add docker stuff, some fixes пре 6 месеци
.gitignore e6ff7e1dd3 add docker-compose.yml, update Dockerfiles пре 6 месеци
Dockerfile 10152aeae5 Dockerfile: add gcc and libc-dev to build tgcrypto on arm64 пре 6 месеци
LICENSE.txt 5d7664ff06 initial пре 1 година
README.md 8946c5698e README.md: add info about docker пре 6 месеци
common.docker-compose.yml e6ff7e1dd3 add docker-compose.yml, update Dockerfiles пре 6 месеци
docker-compose.yml e6ff7e1dd3 add docker-compose.yml, update Dockerfiles пре 6 месеци
pyproject.toml 2fefc06940 add dl_bot, add docker stuff, some fixes пре 6 месеци

README.md

bots

video_note_bot

bot for making video notes (rounded videos) from just videos

audio_cleaner_bot

bot for cleaning ad links from audio search bots and others

bottom_media_bot

bot for inserting preview of this link to bottom of the text

dl_bot

bot for downloading anything with yt-dlp

configuration

configuration stored in toml file located in ${XDG_CONFIG_HOME}/${bot_name}/config.toml, or you can pass another path with --config option

config format:

# from https://core.telegram.org/api/obtaining_api_id
api-id = 1234
api-hash = 'hash'

# from @BotFather
bot-token = 'bot:token'

see --help for more info

docker

to start all bots via docekr compose create configs:

config/audio.toml
config/bottom.toml
config/dl.toml
config/video.toml

and run:

docker compose up -d

or without compose

docker buildx build -t cool-bots .

docker run --rm -it \
    -v "${PWD}/config/dl.toml:/config/config.toml" \
    cool-bots \
    /app/venv/bin/dl-bot --config /config/config.toml