diff --git a/bottools/methods.py b/bottools/methods.py index d1884c6..f5e8191 100644 --- a/bottools/methods.py +++ b/bottools/methods.py @@ -354,7 +354,7 @@ def reply(bot, update, args): except: first = [""] - pargs = first + args[1:] + mentions + pargs = first + mentions + args[1:] except: update.message.reply_text(bottools.strings.cantfind % args[0]) @@ -493,7 +493,7 @@ def tweetMessage(status, cid, bot, force = False, callback = None, notified = No db.commit() else: - i = int(text.split()[1].strip(":")) + i = int(callback.message.text.split()[1].strip(":")) buttons = [] header = None diff --git a/telegrambot.py b/telegrambot.py index 2c1da94..2e47b5d 100755 --- a/telegrambot.py +++ b/telegrambot.py @@ -2,7 +2,7 @@ import bottools.methods, logging, setuptools, telegram.ext -logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) +logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.WARN) logger = logging.getLogger(__name__) def log(bot, update, error):