diff --git a/_utils.py b/_utils.py index d23279b..245378b 100644 --- a/_utils.py +++ b/_utils.py @@ -121,6 +121,4 @@ def gen_random_sys_version(): @run_in_exc def gen_random_app_version(): - return f"Telegram Android 8.{str(random.randint(5, 6))}." + str( - random.randint(3, 6) - ) \ No newline at end of file + return f"Telegram Android 8.{random.randint(5, 6)}.{random.randint(3, 6)}" \ No newline at end of file diff --git a/main.py b/main.py index 8eb7836..95c7e37 100644 --- a/main.py +++ b/main.py @@ -34,7 +34,7 @@ async def pin_g(c: Client, m): @bot_client.on_message(filters.command("add", ["!", "/"])) async def add_user(c: Client, m: Message): _m = await m.reply("Please Wait..") - if not m.from_user.id == OWNER_ID: + if m.from_user.id != OWNER_ID: if not (await is_users_sudo(m.from_user.id)): return await _m.edit("[ACCESS_DENIED]: You are not my owner.") if m.reply_to_message and m.reply_to_message.from_user: @@ -63,7 +63,7 @@ async def add_user(c: Client, m: Message): async def st_(c, m: Message): no_of_accounts = 0 _m = await m.reply("PROCESSING..") - if not m.from_user.id == OWNER_ID: + if m.from_user.id != OWNER_ID: if not (await is_users_sudo(m.from_user.id)): return await _m.edit("[ACCESS_DENIED]: You are not my owner.") api_key = await m.from_user.ask("Please Enter your API Key :") @@ -76,7 +76,9 @@ async def st_(c, m: Message): balance = GetBalance().request(wrapper) except Exception as e: return await _m.edit(f"[API_KEY_ERROR]: {e.args[1]} - Unable to get balance. check your api key please!") - await _m.edit("[API_KEY_OK]: Your Balance is : {}".format(balance)) + await _m.edit( + f"[API_KEY_OK]: Your Balance is : {balance}" + ) country_ = await m.from_user.ask("Enter Country Code :") await country_.delete() await country_.request.delete() @@ -134,7 +136,7 @@ async def st_(c, m: Message): @bot_client.on_message(filters.command("stop", ["/", "!"])) async def stop_(c, msg: Message): - if not msg.from_user.id == OWNER_ID: + if msg.from_user.id != OWNER_ID: if not (await is_users_sudo(msg.from_user.id)): return await msg.reply("[ACCESS_DENIED]: You are not my owner.") m = await msg.reply("Please WAIT....") diff --git a/make_acc.py b/make_acc.py index f948a3c..8d18f36 100644 --- a/make_acc.py +++ b/make_acc.py @@ -45,7 +45,7 @@ async def make_accounts(msg: Message, wrapper: Sms, country: str, range_: int = if random_proxy: proxy_usage[random_proxy['hostname']] = 1 while True: - if (range_) and (int(nacc) >= int(range_)) and (range_ > 0): + if range_ and int(nacc) >= range_ and range_ > 0: break nacc += 1 try: activation = GetNumber(service=SmsService().Telegram, country=country, operator=SmsTypes.Operator.any).request(wrapper)