prevent unnecessary "file too big" errors (?)
This commit is contained in:
parent
0369b98ff2
commit
9fe9c81586
1 changed files with 8 additions and 6 deletions
14
delojza.py
14
delojza.py
|
@ -445,13 +445,15 @@ class DelojzaBot:
|
||||||
return ytdl_res or raw_res
|
return ytdl_res or raw_res
|
||||||
|
|
||||||
def tg_handle(self, bot, update):
|
def tg_handle(self, bot, update):
|
||||||
url_res = self.handle_urls(update.message, self._get_hashtags(update.message))
|
hashtags = self._get_hashtags(update.message)
|
||||||
if url_res:
|
if hashtags:
|
||||||
return
|
url_res = self.handle_urls(update.message, self._get_hashtags(update.message))
|
||||||
|
if url_res:
|
||||||
|
return
|
||||||
|
|
||||||
msg_res = self.handle_tg_message(update.message, bot, self._get_hashtags(update.message))
|
msg_res = self.handle_tg_message(update.message, bot, self._get_hashtags(update.message))
|
||||||
if msg_res:
|
if msg_res:
|
||||||
return
|
return
|
||||||
|
|
||||||
hashtags = self.extract_hashtags(update.message)
|
hashtags = self.extract_hashtags(update.message)
|
||||||
if len(hashtags) > 0:
|
if len(hashtags) > 0:
|
||||||
|
|
Loading…
Reference in a new issue