@2byte/tgbot-framework 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/bot/.env.example +20 -9
package/package.json
CHANGED
|
@@ -1,23 +1,34 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Environment variables for Rewardbot Bot
|
|
2
2
|
|
|
3
|
-
#
|
|
4
|
-
BOT_TOKEN=
|
|
3
|
+
# token from @BotFather
|
|
4
|
+
BOT_TOKEN=8333709720:AAEk3AzAmt1JS0XQJQWqUDI
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# Path to the database
|
|
7
7
|
DATABASE_PATH=./database/database.sqlite
|
|
8
8
|
|
|
9
|
-
#
|
|
9
|
+
# log level: error, warn, info, debug
|
|
10
10
|
LOG_LEVEL=info
|
|
11
11
|
|
|
12
|
+
# port for the bot's application server
|
|
12
13
|
BOT_APP_API_PORT=3033
|
|
14
|
+
# Port for the bot's API server
|
|
13
15
|
BOT_API_URL=https://localhost:3000
|
|
14
16
|
APP_ENV=local
|
|
17
|
+
# enable hot reload for development sections
|
|
15
18
|
BOT_DEV_HOT_RELOAD_SECTIONS=true
|
|
16
|
-
|
|
19
|
+
# Bot access mode: public or private
|
|
20
|
+
BOT_ACCESS=private
|
|
21
|
+
# Comma-separated list of access keys for private bot access
|
|
17
22
|
BOT_ACCESS_KEYS=
|
|
18
|
-
|
|
23
|
+
# Comma-separated list of Telegram usernames allowed to access the bot (without @)
|
|
24
|
+
ACCESS_USERNAMES=
|
|
25
|
+
# Domain and port for webhook setup
|
|
19
26
|
BOT_HOOK_DOMAIN=example.com
|
|
27
|
+
# Port for webhook setup
|
|
20
28
|
BOT_HOOK_PORT=3000
|
|
29
|
+
# URL for gift page
|
|
30
|
+
GIFT_PAGE=https://reward.com
|
|
21
31
|
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
# Telegram API credentials
|
|
33
|
+
TG_APP_ID=2040
|
|
34
|
+
TG_APP_HASH=b18441a1ff607e10a989891a5462e627
|