class Telegram::Bot::Types::ReplyKeyboardMarkup

Public Instance Methods

to_compact_hash() click to toggle source
# File lib/telegram/bot/types/reply_keyboard_markup.rb, line 10
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