убран разделитель -- для vk и discord

This commit is contained in:
2024-06-06 18:51:56 +03:00
parent 9d6b6932a0
commit 98b24c6195

View File

@@ -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)