PRAS
This commit is contained in:
parent
fe6479c7ff
commit
efda13b9f0
1 changed files with 4 additions and 2 deletions
|
@ -93,8 +93,10 @@ def get_first_hashtag(message):
|
||||||
list(filter(lambda e: e.type == 'hashtag', message.caption_entities))))
|
list(filter(lambda e: e.type == 'hashtag', message.caption_entities))))
|
||||||
if len(hashtags) == 0:
|
if len(hashtags) == 0:
|
||||||
return None
|
return None
|
||||||
hashtag = hashtags[0]
|
hashtag = hashtags[0][1:].upper()
|
||||||
return hashtag[1:].upper()
|
if "PRAS" in hashtag:
|
||||||
|
hashtag = "PRAS"
|
||||||
|
return hashtag
|
||||||
|
|
||||||
|
|
||||||
# noinspection PyBroadException
|
# noinspection PyBroadException
|
||||||
|
|
Loading…
Reference in a new issue