Some useful telegram bots

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