Re-enable tweeting directly by caption
This commit is contained in:
parent
5812643e01
commit
4306a2ccb1
|
@ -59,14 +59,17 @@ def captionHelper(bot, update):
|
||||||
else:
|
else:
|
||||||
args = update.message.caption.split()
|
args = update.message.caption.split()
|
||||||
|
|
||||||
try:
|
if args[0].startswith("/"):
|
||||||
feature = commands[args[0][1:]]
|
|
||||||
try:
|
try:
|
||||||
status = feature(bot, update, args[1:])
|
feature = commands[args[0][1:]]
|
||||||
|
try:
|
||||||
|
feature(bot, update, args[1:])
|
||||||
|
except:
|
||||||
|
feature(bot, update)
|
||||||
except:
|
except:
|
||||||
status = feature(bot, update)
|
update.message.reply_text(bottools.strings.unknownCommand)
|
||||||
except:
|
else:
|
||||||
update.message.reply_text(bottools.strings.unknownCommand)
|
explicitTweet(bot, update, args)
|
||||||
|
|
||||||
def mentionHelper(bot, update):
|
def mentionHelper(bot, update):
|
||||||
args = update.message.text.split()
|
args = update.message.text.split()
|
||||||
|
|
Loading…
Reference in a new issue