diff --git a/delojza.py b/delojza.py index f797932..5d6a6c0 100755 --- a/delojza.py +++ b/delojza.py @@ -87,7 +87,7 @@ def download_raw(url, filename, subdir, date): def get_first_hashtag(message): - hashtags = list(filter(lambda e: e.type == 'hashtag', message.entities + message.caption_entities)) + hashtags = list(filter(lambda e: e.type == 'hashtag', list(message.entities + message.caption_entities))) if len(hashtags) == 0: return None hashtag = message.parse_entity(hashtags[0])