Sha256: f571e3423a491e044c73081a6a467870fafb0a4573fdc59b52eb08405fe9290c

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

module Telegram
  module Bot
    module Types
      class InlineKeyboardButton < Base
        attribute :text, String
        attribute :url, String
        attribute :callback_data, String
        attribute :switch_inline_query, String

        def to_h
          super.delete_if { |_, v| v.nil? }
        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_button.rb