telegram-bot-bash-docker
Dockerfile for https://github.com/topkecleon/telegram-bot-bash
telegram-bot-bash-docker
for the first time
Running - Create a Bot using the Botfather
- Copy botconfig.jssh.sample to
botconfig.jssh
- Update this file with the
bottoken
andbotid
provided by Botfather - For good measure, add your Telegram ID as the
botadmin
- Update this file with the
- Create a
botacl
(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-docker
Creating your own All the information that you need regarding customising your bot is available in the README files of the telegram-bot-bash repository.
Building the image
docker build --tag telegram-bot-bash:latest .
Testing your customisations
The easiest approach to testing your customisations is to copy the following files into files into your customised Telegram Bot Bash directory:
botacl
botconfig.jssh
Dockerfile
docker-compose.yml
You'll need to update docker-compose.yml
to mount your directories. For example, if you have customisations in ./scripts
:
-
Add the following bindings
- type: bind source: ./mycommands.sh target: /app/mycommands.sh - type: bind source: ./scripts target: /app/scripts
Run the container
docker-compose up -d
... and the fun begins!
Visit your bot in Telegram and start a chat with the /start
command.
ENJOY!