Sha256: 468c8ca99928beaa52f5564d7b421960335e193a3796ac90b583c35ab981b3bd
Contents?: true
Size: 497 Bytes
Versions: 6
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true module Telegram module Bot module Types class InlineKeyboardMarkup < Base attribute :inline_keyboard, Types::Array.of(Types::Array.of(InlineKeyboardButton)) 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 end end end end
Version data entries
6 entries across 6 versions & 1 rubygems