Class: Vk::API::Messages::Methods::SetActivity

Inherits:
Schema::Method
  • Object
show all
Defined in:
lib/vk/api/messages/methods/set_activity.rb

Overview

Changes the status of a user as typing in a conversation.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Messages::Methods::SetActivity

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :user_id (String)

    User ID.

  • :type (String)

    'typing' — user has started to type.

  • :peer_id (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'.; "


# File 'lib/vk/api/messages/methods/set_activity.rb', line 15

Instance Method Details

#peer_idInteger

Returns Destination ID.; ; "For user:; 'User ID', e.g. '12345'.; ; For chat:; '2000000000' + 'chat_id', e.g. '2000000001'.; ; For community:; '- community ID', e.g. '-12345'.; ".

Returns:

  • (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'.; "


29
# File 'lib/vk/api/messages/methods/set_activity.rb', line 29

attribute :peer_id, API::Types::Coercible::Int.optional.default(nil)

#typeString

Returns 'typing' — user has started to type.

Returns:

  • (String)

    'typing' — user has started to type.


27
# File 'lib/vk/api/messages/methods/set_activity.rb', line 27

attribute :type, API::Types::Coercible::String.optional.default(nil)

#user_idString

Returns User ID.

Returns:

  • (String)

    User ID.


25
# File 'lib/vk/api/messages/methods/set_activity.rb', line 25

attribute :user_id, API::Types::Coercible::String.optional.default(nil)