fix telegram bot notification

This commit is contained in:
SiHuan 2022-05-09 11:10:49 +08:00
parent 1fd94c3958
commit a8a2924e1c
No known key found for this signature in database
GPG Key ID: 6D484EBFDD2ED6BA

View File

@ -214,7 +214,7 @@ class Telegram(MessagingProvider):
async def _post_message(self, title: str, content: str) -> None:
url = f'https://api.telegram.org/bot{self.token}/sendMessage'
payload = {
'chatid': self.chatid,
'chat_id': self.chatid,
'text': title + '\n' + content,
'parse_mode': 'HTML',
}