Some useful telegram bots

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

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