teamx-cloner commited on
Commit
13c9373
·
1 Parent(s): d7f7a04

Update __init__.py

Browse files
Files changed (1) hide show
  1. src/__init__.py +4 -4
src/__init__.py CHANGED
@@ -13,9 +13,9 @@ class Telegram(Client):
13
  def __init__(self) -> None:
14
  self._check_config()
15
  super().__init__(
16
- token=config.BOT_TOKEN,
17
- api_id=config.API_ID,
18
- api_hash=config.API_HASH,
19
  default_parse_mode="html",
20
  td_verbosity=2,
21
  td_log=types.LogStreamEmpty(),
@@ -45,7 +45,7 @@ class Telegram(Client):
45
  def _check_config() -> None:
46
  if os.path.exists("database"):
47
  os.remove("database")
48
- if not isinstance(config.MONGO_URI, str):
49
  raise TypeError("MONGO_URI must be a string")
50
  session_strings = [s for s in config.SESSION if s]
51
  if not session_strings:
 
13
  def __init__(self) -> None:
14
  self._check_config()
15
  super().__init__(
16
+ token=Var.BOT_TOKEN,
17
+ api_id=Var.API_ID,
18
+ api_hash=Var.API_HASH,
19
  default_parse_mode="html",
20
  td_verbosity=2,
21
  td_log=types.LogStreamEmpty(),
 
45
  def _check_config() -> None:
46
  if os.path.exists("database"):
47
  os.remove("database")
48
+ if not isinstance(Var.MONGO_URI, str):
49
  raise TypeError("MONGO_URI must be a string")
50
  session_strings = [s for s in config.SESSION if s]
51
  if not session_strings: