@2byte/tgbot-framework 1.0.4 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2byte/tgbot-framework",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A TypeScript framework for creating Telegram bots with sections-based architecture (Bun optimized)",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -1,23 +1,34 @@
1
- # Переменные окружения для {{className}} Bot
1
+ # Environment variables for Rewardbot Bot
2
2
 
3
- # Токен бота от @BotFather
4
- BOT_TOKEN=your_bot_token_here
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
- BOT_ACCESS=public
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
- ACCESS_USERNAMES=stork0
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
- TG_APP_ID=
23
- TG_APP_HASH=
32
+ # Telegram API credentials
33
+ TG_APP_ID=2040
34
+ TG_APP_HASH=b18441a1ff607e10a989891a5462e627