Merge pull request #62 from sihuan/fix-telegram

fix telegram bot notification
This commit is contained in:
acgnhiki 2022-05-10 22:39:35 +08:00 committed by GitHub
commit 8bfb537616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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',
}