Sha256: 4ae30198c04292a3ad15aaceeb1daae54bba7eeea7dc8b01b24fe6629e4db42c

Contents?: true

Size: 1.41 KB

Versions: 1

Compression:

Stored size: 1.41 KB

Contents

# frozen_string_literal: true
require 'vk/api/methods'

module Vk
  module API
    class Messages < Vk::Schema::Namespace
      module Methods
        # Changes the status of a user as typing in a conversation.
        class SetActivity < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'messages.setActivity'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [String] :user_id User ID.
          #   @option arguments [String] :type 'typing' — user has started to type.
          #   @option arguments [Integer] :peer_id Destination ID.; ; "For user:; 'User ID', e.g. '12345'.; ; For chat:; '2000000000' + 'chat_id', e.g. '2000000001'.; ; For community:; '- community ID', e.g. '-12345'.; "
          #   @return [Messages::Methods::SetActivity]

          # @!group Arguments

          # @return [String] User ID.
          attribute :user_id, API::Types::Coercible::String.optional
          # @return [String] 'typing' — user has started to type.
          attribute :type, API::Types::Coercible::String.optional
          # @return [Integer] Destination ID.; ; "For user:; 'User ID', e.g. '12345'.; ; For chat:; '2000000000' + 'chat_id', e.g. '2000000001'.; ; For community:; '- community ID', e.g. '-12345'.; "
          attribute :peer_id, API::Types::Coercible::Int.optional
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk-0.99.5.53.alpha lib/vk/api/messages/methods/set_activity.rb