randydev commited on
Commit
96915e7
·
verified ·
1 Parent(s): ef02c8d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -4,8 +4,8 @@ import requests
4
  from bs4 import BeautifulSoup
5
  from contextlib import asynccontextmanager
6
  from akenoai import AkenoXToJs as js
7
- from akenoai.runner import create_pyrogram
8
- from akenoai.clients import run_fast
9
  from akenoai.clients.enums import ChatMembersFilter
10
 
11
  from fastapi.middleware.cors import CORSMiddleware
@@ -99,7 +99,7 @@ async def get_download_media_file(file_id: str = None):
99
  @fast_app.get("/user/author/admin")
100
  async def get_author_chat_admin(username: str = None):
101
  same_user = {}
102
- async for m in user_client.get_chat_members(username, filter=EnumsDev.chat_member.ADMINISTRATORS):
103
  if not m.user.is_bot and not m.user.is_deleted:
104
  same_user[m.user.id] = {
105
  "first_name": m.user.first_name,
 
4
  from bs4 import BeautifulSoup
5
  from contextlib import asynccontextmanager
6
  from akenoai import AkenoXToJs as js
7
+ from akenoai.runner import run_fast
8
+ from akenoai.clients import create_pyrogram
9
  from akenoai.clients.enums import ChatMembersFilter
10
 
11
  from fastapi.middleware.cors import CORSMiddleware
 
99
  @fast_app.get("/user/author/admin")
100
  async def get_author_chat_admin(username: str = None):
101
  same_user = {}
102
+ async for m in user_client.get_chat_members(username, filter=ChatMembersFilter.ADMINISTRATORS):
103
  if not m.user.is_bot and not m.user.is_deleted:
104
  same_user[m.user.id] = {
105
  "first_name": m.user.first_name,