Sha256: 758f52cd1bf5cde2574b607d21760b410e43c23ebb66c804e2aa7929fbbcdccf

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class KeyboardButton < Base
        attribute :text, Types::String
        attribute? :request_users, KeyboardButtonRequestUsers
        attribute? :request_chat, KeyboardButtonRequestChat
        attribute? :request_contact, Types::Bool
        attribute? :request_location, Types::Bool
        attribute? :request_poll, KeyboardButtonPollType
        attribute? :web_app, WebAppInfo
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
telegram-bot-ruby-2.1.0 lib/telegram/bot/types/keyboard_button.rb
telegram-bot-ruby-2.0.0 lib/telegram/bot/types/keyboard_button.rb