From 98b24c619531aa9707aaa9a85efd3ca32d73ac50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=A5=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=BE=D0=B2?= Date: Thu, 6 Jun 2024 18:51:56 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BD=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D0=B4=D0=B5=D0=BB=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=20--=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20vk=20=D0=B8=20discord?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- news-bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/news-bot.py b/news-bot.py index 16fc47a..498cc4b 100755 --- a/news-bot.py +++ b/news-bot.py @@ -474,7 +474,7 @@ def check_vk_posts(): logging.info(f"Новости для публикации в ВК: {list_for_public}") text_data = news_content(topic_id) if text_data: - content = f"----------------------------------------------------------\n{topic_title}\t\n" + text_data + "\n" + content = f"{topic_title}\t\n" + text_data + "\n" content = remove_markdown_links(content) content = re.sub(r'https://linux-gaming.ru/uploads/default/original/1X/5cfa59077a5275971401fab0114e56f3ffdd0ec4.png', '\n', content, flags=re.DOTALL) links = extract_links(content) @@ -536,7 +536,7 @@ def check_tg_news(): for topic_id, topic_title in reversed(list_for_public): text_data = news_content(topic_id) if text_data: - content = f"----------------------------------------------------------\n### {topic_title}\t\n" + text_data + "\n" + content = f"### {topic_title}\t\n" + text_data + "\n" while True: try: await client_tg.send_message(keys.channel_username_tg, content)