diff --git a/libs/funcs.py b/libs/funcs.py index f3e81a0a13a..362be6c8d21 100644 --- a/libs/funcs.py +++ b/libs/funcs.py @@ -189,9 +189,9 @@ async def send2tg(self, tg_token, title, content): title_sp[1] = '-'.join(title1) title = ' '.join(title_sp) - content = content.replace('\\r\\n', '\n
')
-                d = {'chat_id': str(chat_id), 'text': '' + title + '' + '\n
' + content + '
\n' + - '------QD提醒------', 'disable_web_page_preview': 'false', 'parse_mode': 'HTML'} + content = content.replace('\\r\\n', '\n') + d = {'chat_id': str(chat_id), 'text': '' + title + '' + '\n' + content + '\n' + + '------QD提醒------', 'disable_web_page_preview': 'true', 'parse_mode': 'HTML'} if proxy: async with aiohttp.ClientSession(conn_timeout=config.connect_timeout) as session: async with session.post(link, json=d, verify_ssl=False, proxy=proxy, timeout=config.request_timeout) as res: