This commit is contained in:
yasirarism 2023-05-22 15:23:05 +00:00 committed by GitHub
parent ffb05e57ce
commit 6348766cce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -60,7 +60,6 @@ async def kusonimeBypass(url: str, slug=None):
LOGGER.error(err)
result.update({"error": True, "error_message": err})
finally:
LOGGER.info(result)
await http.delete(_url)
return result
@ -93,7 +92,7 @@ async def byPassPh(url: str, name: str):
{{/data}}
""".strip()
if not kusonime["error"]:
html = render(template, kusonime)
html = chevron.render(template, kusonime)
telegraph = Telegraph()
if not telegraph.get_access_token():
await telegraph.create_account(short_name=bot_name)

View file

@ -134,6 +134,9 @@ async def rm_delacc(client, message):
async def instatus(client, message):
if message.sender_chat:
return await message.reply_msg("Not supported channel.", del_in=4)
bstat = await app.get_chat_member(message.chat.id, client.me.id)
if bstat.status.value != "administrator":
return await message.reply_msg("Please give me all basic admin permission, to run this command.")
start_time = time.perf_counter()
user = await app.get_chat_member(message.chat.id, message.from_user.id)
count = await app.get_chat_members_count(message.chat.id)