fix maybe?
This commit is contained in:
parent
9530e328df
commit
86b10de944
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ def download_raw(url, filename, subdir, date):
|
||||||
|
|
||||||
|
|
||||||
def get_first_hashtag(message):
|
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:
|
if len(hashtags) == 0:
|
||||||
return None
|
return None
|
||||||
hashtag = message.parse_entity(hashtags[0])
|
hashtag = message.parse_entity(hashtags[0])
|
||||||
|
|
Loading…
Reference in a new issue