Skip to content

Commit 284b1be

Browse files
committed
docs: add selfhosted Telegram Bot API to dockercompose example
1 parent 76a16c4 commit 284b1be

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

tools/deployment/vigobusbot/docker-compose.yml

+14
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ services:
5252
networks:
5353
- backend
5454

55+
vigobus_telegrambotapi:
56+
# https://github.com/lukaszraczylo/tdlib-telegram-bot-api-docker
57+
container_name: vigobus_telegrambotapi
58+
image: ghcr.io/lukaszraczylo/tdlib-telegram-bot-api-docker/telegram-api-server:latest
59+
volumes:
60+
- /etc/localtime:/etc/localtime:ro
61+
- /etc/timezone:/etc/timezone:ro
62+
env_file:
63+
- telegram_botapi.env
64+
restart: unless-stopped
65+
networks:
66+
- frontend
67+
5568
vigobus_bot:
5669
container_name: vigobus_bot
5770
image: *python_image
@@ -69,6 +82,7 @@ services:
6982
- telegram_token
7083
- telegram_persist_salt
7184
depends_on:
85+
- vigobus_telegrambotapi
7286
- vigobus_api
7387
- persistence_api
7488
restart: unless-stopped
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Settings for the selfhosted Telegram Bot API
2+
# How to generate the TG API ID & hash: https://core.telegram.org/api/obtaining_api_id
3+
TELEGRAM_API_ID=
4+
TELEGRAM_API_HASH=

tools/deployment/vigobusbot/vigobus_bot.env

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ TOKEN=/run/secrets/telegram_token # use this instead to load the token from Doc
44

55
ADMIN_USERID= # set your Telegram User ID
66

7+
# Selfhosted Telegram bot API, (base-URL)
8+
BOT_API_URL=http://vigobus_telegrambotapi:8081
9+
#BOT_API_URL=https://api.telegram.org # use this instead to use the official API
10+
711
API_TIMEOUT=10
812
PERSIST_TIMEOUT=1.5
913
SKIP_PREV_UPDATES=1

0 commit comments

Comments
 (0)