diff --git a/delojza.py b/delojza.py index 428750a..43ef9c2 100755 --- a/delojza.py +++ b/delojza.py @@ -14,6 +14,7 @@ import markovify import mutagen.id3 import pytumblr import requests +import telegram import youtube_dl from telegram import MessageEntity from telegram.ext import Updater, CommandHandler, MessageHandler, Filters @@ -185,6 +186,11 @@ class DelojzaBot: message.reply_text('(btw, queueing to tumblr)') for filename in filenames: self.client.create_photo('kunsaxan', state="queue", data=filename) + elif hashtag == 'TUMBLR_NOW' and self.client: + message.reply_text('(btw, ***FIRING TO TUMBLR RIGHT AWAY***)', + parse_mode=telegram.ParseMode.MARKDOWN) + for filename in filenames: + self.client.create_photo('kunsaxan', state="published", data=filename) return filenames except: _, exc_value, __ = sys.exc_info()