Example #1
0
def cl(bot, update, args):
    expr = "".join(args)
    res = calc.calc(urllib.quote(expr))
    bot.sendMessage(chat_id=update.message.chat_id, text=res)
Example #2
0
def cl(bot, args):
    expr = "".join(args)
    return calc.calc(urllib.quote(expr))