diff --git a/delojza.py b/delojza.py index 5266b26..6cb88d7 100755 --- a/delojza.py +++ b/delojza.py @@ -173,8 +173,8 @@ class DelojzaBot: message.reply_text("Something is FUCKED: %s" % exc_value) def handle_url(self, _, update): - urls = map(lambda e: update.message.parse_entity(e), - filter(lambda e: e.type == 'url', update.message.entities)) + urls = list(map(lambda e: update.message.parse_entity(e), + filter(lambda e: e.type == 'url', update.message.entities))) ytdl_urls = [url for url in urls if self.ytdl_can(url)] normal_urls = [url for url in urls if not self.ytdl_can(url)] if len(ytdl_urls) > 0: