def status(bot: Bot, update: Update): reply = "<b>System Status:</b> <code>operational</code>\n\n" reply += "<b>Hitsuki version:</b> <code>3.0.0</code>\n" reply += "<b>Python version:</b> <code>" + python_version() + "</code>\n" reply += "<b>CAS API version:</b> <code>" + str( cas.vercheck()) + "</code>\n" reply += "<b>GitHub API version:</b> <code>" + str( git.vercheck()) + "</code>\n\n" reply += "<b>News channel:</b> @HitsukiNews" update.effective_message.reply_text(reply, parse_mode=ParseMode.HTML)
def getVer(bot: Bot, update: Update): msg = update.effective_message ver = api.vercheck() msg.reply_text("GitHub API version: " + ver) return
def status(update, context): reply = "*Hitsuki System Info:*\n\n" reply += "*Hitsuki Version:* `" + str(hitsukiv.vercheck()) + "`\n" reply += "*Python Version:* `" + python_version() + "`\n" reply += "*GitHub API Version:* `" + str(git.vercheck()) + "`\n" update.effective_message.reply_text(reply, parse_mode=ParseMode.MARKDOWN)
def getVer(update, context): msg = update.effective_message ver = api.vercheck() msg.reply_text("GitHub API version: " + ver) return