understanding commited on
Commit
2ce10c9
·
verified ·
1 Parent(s): 81d1bff

Update bot/__init__.py

Browse files
Files changed (1) hide show
  1. bot/__init__.py +1 -6
bot/__init__.py CHANGED
@@ -1,13 +1,9 @@
1
- from logging.config import dictConfig
2
  from logging import getLogger
3
  from hydrogram import Client
 
4
 
5
- from .config import Telegram, LOGGER_CONFIG_JSON
6
-
7
- dictConfig(LOGGER_CONFIG_JSON)
8
  logger = getLogger("bot")
9
 
10
- # Build client kwargs safely
11
  _kwargs = dict(
12
  name="bot",
13
  api_id=Telegram.API_ID,
@@ -17,7 +13,6 @@ _kwargs = dict(
17
  max_concurrent_transmissions=10,
18
  )
19
 
20
- # Prefer SESSION_STRING, else BOT_TOKEN
21
  if Telegram.SESSION_STRING:
22
  _kwargs["session_string"] = Telegram.SESSION_STRING
23
  elif Telegram.BOT_TOKEN:
 
 
1
  from logging import getLogger
2
  from hydrogram import Client
3
+ from .config import Telegram
4
 
 
 
 
5
  logger = getLogger("bot")
6
 
 
7
  _kwargs = dict(
8
  name="bot",
9
  api_id=Telegram.API_ID,
 
13
  max_concurrent_transmissions=10,
14
  )
15
 
 
16
  if Telegram.SESSION_STRING:
17
  _kwargs["session_string"] = Telegram.SESSION_STRING
18
  elif Telegram.BOT_TOKEN: