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))))
|
||||
if len(hashtags) == 0:
|
||||
return None
|
||||
hashtag = hashtags[0]
|
||||
return hashtag[1:].upper()
|
||||
hashtag = hashtags[0][1:].upper()
|
||||
if "PRAS" in hashtag:
|
||||
hashtag = "PRAS"
|
||||
return hashtag
|
||||
|
||||
|
||||
# noinspection PyBroadException
|
||||
|
|
Loading…
Reference in a new issue