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,8 +15,8 @@ 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),
|
||||
"https://api.telegram.org/bot{token}/sendMessage".format(token=token))
|
||||
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
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue