Re-enable tweeting directly by caption

This commit is contained in:
Klaus-Uwe Mitterer 2017-03-28 16:08:06 +02:00
parent 5812643e01
commit 4306a2ccb1
1 changed files with 9 additions and 6 deletions

View File

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