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")
评论列表
文章目录