Allow tweeting images without caption

This commit is contained in:
Klaus-Uwe Mitterer 2017-04-06 22:48:45 +02:00
parent a4c560baf2
commit 520fff4402

View file

@ -59,16 +59,19 @@ def captionHelper(bot, update):
else:
args = update.message.caption.split()
if args[0].startswith("/"):
try:
feature = commands[args[0][1:]]
try:
if args[0].startswith("/"):
try:
feature(bot, update, args[1:])
feature = commands[args[0][1:]]
try:
feature(bot, update, args[1:])
except:
feature(bot, update)
except:
feature(bot, update)
except:
update.message.reply_text(bottools.strings.unknownCommand)
else:
update.message.reply_text(bottools.strings.unknownCommand)
else:
raise ValueError()
except:
explicitTweet(bot, update, args)
def mentionHelper(bot, update):