Adapt mentions because of the f***ing Twitter changes...

This commit is contained in:
Klaus-Uwe Mitterer 2017-04-02 03:05:11 +02:00
parent c9e77afe0e
commit a7a26059e2
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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):