Some useful telegram bots

dm9pZCAq 8946c5698e README.md: add info about docker 8 hónapja
src 2fefc06940 add dl_bot, add docker stuff, some fixes 8 hónapja
tests 07a0bdbf73 fix byte_convertor 1 éve
.dockerignore 2fefc06940 add dl_bot, add docker stuff, some fixes 8 hónapja
.gitignore e6ff7e1dd3 add docker-compose.yml, update Dockerfiles 8 hónapja
Dockerfile 10152aeae5 Dockerfile: add gcc and libc-dev to build tgcrypto on arm64 8 hónapja
LICENSE.txt 5d7664ff06 initial 1 éve
README.md 8946c5698e README.md: add info about docker 8 hónapja
common.docker-compose.yml e6ff7e1dd3 add docker-compose.yml, update Dockerfiles 8 hónapja
docker-compose.yml e6ff7e1dd3 add docker-compose.yml, update Dockerfiles 8 hónapja
pyproject.toml 2fefc06940 add dl_bot, add docker stuff, some fixes 8 hónapja

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