mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Send formatted messages
This commit is contained in:
parent
f2f3f449bd
commit
54ebf6b9a7
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ async def send_message(msg: str, to: int):
|
||||||
# Send the message
|
# Send the message
|
||||||
params = {
|
params = {
|
||||||
"chat_id": to,
|
"chat_id": to,
|
||||||
"text": msg
|
"text": msg,
|
||||||
|
"parse_mode": "Markdown"
|
||||||
}
|
}
|
||||||
r = await 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))
|
"https://api.telegram.org/bot{token}/sendMessage".format(token=token))
|
||||||
|
|
Loading…
Reference in a new issue