mirror of
https://github.com/acgnhiki/blrec.git
synced 2025-03-29 22:20:11 +08:00
fix telegram bot notification
This commit is contained in:
parent
1fd94c3958
commit
a8a2924e1c
@ -214,7 +214,7 @@ class Telegram(MessagingProvider):
|
|||||||
async def _post_message(self, title: str, content: str) -> None:
|
async def _post_message(self, title: str, content: str) -> None:
|
||||||
url = f'https://api.telegram.org/bot{self.token}/sendMessage'
|
url = f'https://api.telegram.org/bot{self.token}/sendMessage'
|
||||||
payload = {
|
payload = {
|
||||||
'chatid': self.chatid,
|
'chat_id': self.chatid,
|
||||||
'text': title + '\n' + content,
|
'text': title + '\n' + content,
|
||||||
'parse_mode': 'HTML',
|
'parse_mode': 'HTML',
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user