title: Telebot: how to retrieve InlineKeyboardButton callback data?
body: <p>I am buidling a simple game with pytelegrambotapi.
  According to the rules, the user is sent a definition and four buttons with words as text, of which one is correct.
  The user then should press the right button. Another routine then compares the user's answer to the right answer.
  How do I retrieve the value of the button that the user pressed?</p>
  
  <pre><code>import telebot
  from telebot import types
  
  TOKEN = 'XXXXXXXXXXXXXXXXX'
  bot = telebot.TeleBot(TOKEN)
  
  kb = types.InlineKeyboardMarkup(row_width=2)
  
  words = {
  'Meager' : 'Lacking in quantity',
  'Asylum' : 'Shelter',
  'Irk' : 'To annoy',
  'Kudos' : 'Great glory'
  }
  
  
  def compare(message, word, definition):
      if definition == words[word]:
          bot.send_message(message.from_user.id, 'Correct!')
      else:
          bot.send_message(message.from_user.id, 'Wrong!')
  
  
  for item in words.items():
      kb.add(types.InlineKeyboardButton(item[0], callback_data = item[0]))
  
  
  
  @bot.message_handler(commands=['start', 's'])
  def post_random_article(message):
      word = 'Meager'
      bot.send_message(message.from_user.id, word, reply_markup = kb)
  
  bot.polling()
  </code></pre>