maybe not client

This commit is contained in:
Tomáš Mládek 2019-04-18 16:35:40 +02:00 committed by Tomáš Mládek
parent 2d85eae50a
commit b37e4be8b3

View file

@ -161,7 +161,7 @@ class DelojzaBot:
message.reply_text(reply) message.reply_text(reply)
filenames = download_fn(urls, hashtag or '.', message.date, extract=extract, filename=filename) filenames = download_fn(urls, hashtag or '.', message.date, extract=extract, filename=filename)
if hashtag == 'TUMBLR': if hashtag == 'TUMBLR' and self.client:
message.reply_text('(btw, queueing to tumblr)') message.reply_text('(btw, queueing to tumblr)')
for filename in filenames: for filename in filenames:
self.client.create_photo('kunsaxan', state="queue", data=filename) self.client.create_photo('kunsaxan', state="queue", data=filename)