File tree 3 files changed +22
-0
lines changed
tools/deployment/vigobusbot
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,19 @@ services:
52
52
networks :
53
53
- backend
54
54
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
+
55
68
vigobus_bot :
56
69
container_name : vigobus_bot
57
70
image : *python_image
@@ -69,6 +82,7 @@ services:
69
82
- telegram_token
70
83
- telegram_persist_salt
71
84
depends_on :
85
+ - vigobus_telegrambotapi
72
86
- vigobus_api
73
87
- persistence_api
74
88
restart : unless-stopped
Original file line number Diff line number Diff line change
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 =
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ TOKEN=/run/secrets/telegram_token # use this instead to load the token from Doc
4
4
5
5
ADMIN_USERID = # set your Telegram User ID
6
6
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
+
7
11
API_TIMEOUT = 10
8
12
PERSIST_TIMEOUT = 1.5
9
13
SKIP_PREV_UPDATES = 1
You can’t perform that action at this time.
0 commit comments