Fix telegram
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user