understanding commited on
Commit
341445e
·
verified ·
1 Parent(s): c251b17

Update bot/config.py

Browse files
Files changed (1) hide show
  1. bot/config.py +6 -3
bot/config.py CHANGED
@@ -38,12 +38,15 @@ class Telegram:
38
  API_HASH: str = _get_str("API_HASH", "")
39
  BOT_TOKEN: str = _get_str("BOT_TOKEN", "")
40
 
41
- USER_SESSION_STRING: str = _get_str("USER_SESSION_STRING", "") or _get_str("SESSION_STRING", "")
42
- SESSION_STRING: str = _get_str("SESSION_STRING", "") # legacy
 
 
 
 
43
 
44
  OWNER_ID: int = _get_int("OWNER_ID", 0)
45
  BOT_USERNAME: str = _get_str("TELEGRAM_BOT_USERNAME", "BotFather")
46
-
47
  ADMIN_IDS: list[int] = _get_int_list("ADMIN_IDS")
48
 
49
  class Workers:
 
38
  API_HASH: str = _get_str("API_HASH", "")
39
  BOT_TOKEN: str = _get_str("BOT_TOKEN", "")
40
 
41
+ # BOT session (generated using API_ID + API_HASH + BOT_TOKEN)
42
+ # In HF you already have this as SESSION_STRING
43
+ SESSION_STRING: str = _get_str("SESSION_STRING", "")
44
+
45
+ # ✅ USER session (generated using API_ID + API_HASH + phone login)
46
+ USER_SESSION_STRING: str = _get_str("USER_SESSION_STRING", "")
47
 
48
  OWNER_ID: int = _get_int("OWNER_ID", 0)
49
  BOT_USERNAME: str = _get_str("TELEGRAM_BOT_USERNAME", "BotFather")
 
50
  ADMIN_IDS: list[int] = _get_int_list("ADMIN_IDS")
51
 
52
  class Workers: