Some useful telegram bots

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

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