Allow tweeting images without caption
This commit is contained in:
parent
a4c560baf2
commit
520fff4402
|
@ -59,6 +59,7 @@ def captionHelper(bot, update):
|
|||
else:
|
||||
args = update.message.caption.split()
|
||||
|
||||
try:
|
||||
if args[0].startswith("/"):
|
||||
try:
|
||||
feature = commands[args[0][1:]]
|
||||
|
@ -69,6 +70,8 @@ def captionHelper(bot, update):
|
|||
except:
|
||||
update.message.reply_text(bottools.strings.unknownCommand)
|
||||
else:
|
||||
raise ValueError()
|
||||
except:
|
||||
explicitTweet(bot, update, args)
|
||||
|
||||
def mentionHelper(bot, update):
|
||||
|
|
Loading…
Reference in a new issue