animebot.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:animebot 作者: EV3REST 项目源码 文件源码
def tag(bot, update, chat_id=None):
        if chat_id == None:
            chat_id = update.message.chat_id
        else:
            pass
        try:
            tags = update.message.text.split(' ', 1)[1]
        except Exception as e:
            try:
                tags = lastcmd[update.callback_query.message.chat_id].split(' ', 1)[1]
            except:
                bot.sendMessage(chat_id, "Please, use `/tag <tag>` instead.", parse_mode=ParseMode.MARKDOWN)
        pages = "30"

        try:
            lastcmd[update.message.chat_id]=update.message.text
        except Exception as e:
            pass
        noparser(bot, update, tags=tags, pages=pages, chat_id=chat_id)
        if update.message != None:
            botanio(bot, update, message=update.message, uid=chat_id, event_name="/tag")
        else:
            botanio(bot, update, message = None, uid=chat_id, event_name="/tag")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号