Adapt mentions because of the f***ing Twitter changes...
This commit is contained in:
parent
c9e77afe0e
commit
a7a26059e2
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue