class Telegram::Bot::Types::ReplyKeyboardMarkup
def to_compact_hash
def to_compact_hash hsh = super hsh[:keyboard].map! do |arr| arr.map do |item| item.is_a?(KeyboardButton) ? item.to_compact_hash : item end end hsh end
def to_compact_hash hsh = super hsh[:keyboard].map! do |arr| arr.map do |item| item.is_a?(KeyboardButton) ? item.to_compact_hash : item end end hsh end