Sha256: 2952823436d6a10547bc3c8dd890b4680eb78d7822b6f5219ff096282e2977a8

Contents?: true

Size: 311 Bytes

Versions: 1

Compression:

Stored size: 311 Bytes

Contents

module Telegram
  module Bot
    module Types
      class InlineKeyboardMarkup < Base
        attribute :inline_keyboard, Array[Array[InlineKeyboardButton]]

        def to_h
          hsh = super
          hsh[:inline_keyboard].map! { |a| a.map(&:to_h) }

          hsh
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
telegram-bot-ruby-0.5.0.beta1 lib/telegram/bot/types/inline_keyboard_markup.rb