0
    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() print ('LISTENING TELEGRAM........!!!!')

4

0 回答 0