В документации читаем
add_callback_query_handler(handler_dict)
Adds a callback request handler Note that you should use register_callback_query_handler to add callback_query_handler to the bot.
PARAMETERS
handler_dict –
RETURNS
Поэтому ваш код будет выглядеть так
import telebot
from telebot import types
bot = telebot.TeleBot('-----')
@bot.message_handler(commands=['start'])
def button(message):
markup = types.InlineKeyboardMarkup(row_width=2)
item = types.InlineKeyboardButton('start', callback_data='start')
item2 = types.InlineKeyboardButton('sixes', callback_data='sixes')
item3 = types.InlineKeyboardButton('info', callback_data='info')
item4 = types.InlineKeyboardButton('creator', callback_data='creator')
markup.add(item, item2, item3, item4)
bot.send_message(message.chat.id, '------', reply_markup=markup)
@bot.callback_query_handler(func=lambda call:True)
def callback(call):
if call.message:
if call.data == 'start':
bot.send_message(call.message.caht.id, '-------')
bot.polling(none_stop=True)