Skip to content

Commit

Permalink
Merge pull request #3 from qq1176321897/main
Browse files Browse the repository at this point in the history
update query api verion for endpoint /query
  • Loading branch information
lulu666lulu authored Jan 10, 2021
2 parents fe0264f + 8d41eb2 commit 0a3fa94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions queryapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

apiroot = 'https://help.tencentbot.top'

def getprofile(viewer_id: int, interval: int = 1) -> dict:
reqid = json.loads(aiorequests.get(f'{apiroot}/enqueue?target_viewer_id={viewer_id}').content.decode('utf8'))['reqeust_id']
def getprofile(viewer_id: int, interval: int = 1, full: bool = False) -> dict:
reqid = json.loads(aiorequests.get(f'{apiroot}/enqueue?full={full}&target_viewer_id={viewer_id}').content.decode('utf8'))['reqeust_id']

if reqid is None:
return "id err"
Expand Down

0 comments on commit 0a3fa94

Please sign in to comment.