Telegram Bot written in bash. Visit https://github.com/dcoomber/telegram-bot-bash-docker
1.3K
Dockerfile for https://github.com/topkecleon/telegram-bot-bash
telegram-bot-bash-docker for the first timebotconfig.jssh
bottoken and botid provided by Botfatherbotadminbotacl (access control) file to give your Telegram user permissions to interact with the bot. Take a look at botacl.sample to get an understanding of the format of this file.telegram-bot-bash-dockerAll the information that you need regarding customising your bot is available in the README files of the telegram-bot-bash repository.
The easiest approach to testing your customisations is to copy the following files into files into your customised Telegram Bot Bash directory:
botaclbotconfig.jsshDockerfiledocker-compose.ymlYou'll need to update docker-compose.yml to mount your directories. For example, if you have customisations in ./scripts:
Add the following bindings (consider creating a docker-compose.override.yml for these settings)
- type: bind
source: ./mycommands.sh
target: /app/mycommands.sh
- type: bind
source: ./scripts
target: /app/scripts
docker-compose up -d
Visit your bot in Telegram and start a chat with the /start command.
ENJOY!
You could always build your own Docker image for use in your projects.
You'll need to substitute your own username in place of my username (dcoomber).
docker build --tag dcoomber/telegram-bot-bash:1.52 --tag dcoomber/telegram-bot-bash:latest .
docker push dcoomber/telegram-bot-bash --all-tags
Content type
Image
Digest
sha256:f6a35429e…
Size
52 MB
Last updated
4 months ago
docker pull dcoomber/telegram-bot-bash