如何使用SQL像我的代码一样回答InlineKeyboardMarkup,InlineKeyboardButton

问题描述

    if command == '/olo':
        host = str(args[1])
        cursor.execute("SELECT * from data_olo where AO='%s'" % host)
        mitra = cursor.fetchall()
        for row in mitra:
            hasil = "Mitra : " + row[2]
            bot.sendMessage(chat_id,hasil,reply_markup=InlineKeyboardMarkup(inline_keyboard=[
                [InlineKeyboardButton(text="ONT",callback_data='yes'),InlineKeyboardButton(text="DATA",callback_data='no'),]]))

bot = telepot.Bot('932866986:AAEqMiE5f1sQJu4YbCgBsnaL3JXhv4jA17o') MessageLoop(bot,handle).run_as_thread() 打印(“监听电话........ !!!!”)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)