code: def to_array(self):
          
          array = super(InlineKeyboardMarkup, self).to_array()
          array['inline_keyboard'] = self._as_array(self.inline_keyboard)  # type list of list of InlineKeyboardButton
  
          return array
docs: Serializes this InlineKeyboardMarkup to a dictionary.
  
          :return: dictionary representation of this object.
          :rtype: dict