| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- from config import (
- bot_token, api_id, api_hash, OWNER_ID,
- sudo_users_id as SUDO_USER_ID, log_group_id as LOG_GROUP_ID,
- fernet_encryption_key as FERNET_ENCRYPTION_KEY,
- captcha_delay_in_seconds as WELCOME_DELAY_KICK_SEC,
- ARQ_API_BASE_URL as ARQ, LUNA_API)
- from pyrogram import Client
- import time
- import logging
- f = open("error.log", "w")
- f.write("PEAK OF LOG FILE")
- LOG_FORMAT = (
- '''
- [%(asctime)s.%(msecs)03d] %(filename)s:%(lineno)s
- %(levelname)s: %(message)s''')
- logging.basicConfig(
- level=logging.INFO,
- format=LOG_FORMAT,
- datefmt="%m-%d %H:%M",
- filename="error.log",
- filemode="w",
- )
- console = logging.StreamHandler()
- console.setLevel(logging.ERROR)
- formatter = logging.Formatter(LOG_FORMAT)
- console.setFormatter(formatter)
- logging.getLogger("").addHandler(console)
- log = logging.getLogger()
- SUDOERS = SUDO_USER_ID
- SUDOERS.append(OWNER_ID)
- MOD_LOAD = []
- MOD_NOLOAD = []
- bot_start_time = time.time()
- app = Client("wbb", bot_token=bot_token, api_id=api_id, api_hash=api_hash)
|