Class: Telegram::Bot::Types::InlineKeyboardMarkup
- Defined in:
- lib/telegram/bot/types/inline_keyboard_markup.rb
Instance Method Summary collapse
Methods included from PatternMatching
Methods included from Compactable
Instance Method Details
#to_compact_hash ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/telegram/bot/types/inline_keyboard_markup.rb', line 9 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 |