mirror of
https://github.com/acgnhiki/blrec.git
synced 2024-12-28 09:30:13 +08:00
Merge pull request #62 from sihuan/fix-telegram
fix telegram bot notification
This commit is contained in:
commit
8bfb537616
@ -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',
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user