class Telegram::Bot::Types::InlineKeyboardMarkup
Public Instance Methods
to_compact_hash()
click to toggle source
Calls superclass method
Telegram::Bot::Types::Compactable#to_compact_hash
# File lib/telegram/bot/types/inline_keyboard_markup.rb, line 7 def to_compact_hash hsh = super hsh[:inline_keyboard].map! do |arr| arr.map do |item| item.is_a?(InlineKeyboardButton) ? item.to_compact_hash : item end end hsh end