prevent unnecessary "file too big" errors (?)

This commit is contained in:
Tomáš Mládek 2019-07-25 11:05:52 +02:00
parent 0369b98ff2
commit 9fe9c81586

View file

@ -445,6 +445,8 @@ 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):
hashtags = self._get_hashtags(update.message)
if hashtags:
url_res = self.handle_urls(update.message, self._get_hashtags(update.message)) url_res = self.handle_urls(update.message, self._get_hashtags(update.message))
if url_res: if url_res:
return return