Fix telegram

This commit is contained in:
Vasily Zubarev
2020-02-19 11:05:34 +01:00
parent d00fc59605
commit 698f623499
2 changed files with 2 additions and 2 deletions

View File

@@ -11,6 +11,6 @@ def cleanup_telegram_message_text(text):
r"[\n]{3,}", # triple newlines
]
for pattern in cleanup_expressions:
text = re.sub(pattern, "", text)
text = re.sub(pattern, "", text, flags=re.M)
return text.strip()

View File

@@ -33,7 +33,7 @@ class TelegramChannelFeed(Feed):
return item.title
def item_description(self, item):
return item.description
return item.clean_text
def item_link(self, item):
return item.link