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:
|
except:
|
||||||
first = [""]
|
first = [""]
|
||||||
|
|
||||||
pargs = first + args[1:] + mentions
|
pargs = first + mentions + args[1:]
|
||||||
|
|
||||||
except:
|
except:
|
||||||
update.message.reply_text(bottools.strings.cantfind % args[0])
|
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()
|
db.commit()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
i = int(text.split()[1].strip(":"))
|
i = int(callback.message.text.split()[1].strip(":"))
|
||||||
|
|
||||||
buttons = []
|
buttons = []
|
||||||
header = None
|
header = None
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import bottools.methods, logging, setuptools, telegram.ext
|
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__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
def log(bot, update, error):
|
def log(bot, update, error):
|
||||||
|
|
Loading…
Reference in a new issue