class Telegrambot::Types::InlineKeyboardMarkup
Public Instance Methods
to_compact_hash()
click to toggle source
@return [Hash]
Calls superclass method
Telegrambot::Types::Base#to_compact_hash
# File lib/telegrambot/types/inline_keyboard_markup.rb, line 5 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