Sha256: 82456b0fdca4c71742010c070d69814c09a9fca922219993c46e2f7d9093a4d2

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 Bytes

Contents

module Telegram
  module Bot
    module Types
      class KeyboardButton < Base
        attribute :text, String
        attribute :request_contact, Boolean
        attribute :request_location, Boolean

        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/keyboard_button.rb