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)