This commit is contained in:
parent
ef0f5168e1
commit
83fba058ab
|
@ -19,11 +19,11 @@ async def _request_endpoint(query_name, body) -> Any:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
async def get_all_authors() -> List[ChatMember]:
|
async def get_all_authors(limit: int = 50, offset: int = 0) -> List[ChatMember]:
|
||||||
query_name = "load_authors_all"
|
query_name = "load_authors_all"
|
||||||
|
|
||||||
gql = {
|
gql = {
|
||||||
"query": "query { " + query_name + " { id slug pic name } }",
|
"query": "query { " + query_name + "(limit: " + str(limit) + ", offset: " + str(offset) +") { id slug pic name } }",
|
||||||
"variables": None,
|
"variables": None,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user