Class: Telegrambot::Types::InlineKeyboardMarkup
- Defined in:
- lib/telegrambot/types/inline_keyboard_markup.rb
Instance Method Summary collapse
Instance Method Details
#to_compact_hash ⇒ Hash
5 6 7 8 9 10 11 12 13 |
# 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 |