mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Fixed an AttributeError
This commit is contained in:
parent
58bdae9c2e
commit
539b31f260
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ async def send_message(msg: str, to: int):
|
|||
"chat_id": to,
|
||||
"text": msg
|
||||
}
|
||||
r = loop.run_in_executor(None, functools.partial(requests.get, params=params),
|
||||
r = await loop.run_in_executor(None, functools.partial(requests.get, params=params),
|
||||
"https://api.telegram.org/bot{token}/sendMessage".format(token=token))
|
||||
if r.status_code == 200:
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue