diff --git a/converters/stickers.py b/converters/stickers.py index 0e1f95e..6268f44 100644 --- a/converters/stickers.py +++ b/converters/stickers.py @@ -13,6 +13,18 @@ def replace_sticker(text): if text: pattern = r'' items = re.findall(pattern, text) + for i in items: + stickers_set.add(i) + text = re.sub(pattern, r':\1:', text) + + pattern = r'' + items = re.findall(pattern, text) + for i in items: + stickers_set.add(i) + text = re.sub(pattern, r':\1:', text) + + pattern = r'' + items = re.findall(pattern, text) for i in items: stickers_set.add(i) return re.sub(pattern, r':\1:', text)