Class: Vk::API::Messages::Methods::AddChatUser

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

Overview

Adds a new user to a chat.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :chat_id (Integer)

    Chat ID.

  • :user_id (Integer)

    ID of the user to be added to the chat.



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

Instance Method Details

#chat_idInteger

Returns Chat ID.

Returns:

  • (Integer)

    Chat ID.



24
# File 'lib/vk/api/messages/methods/add_chat_user.rb', line 24

attribute :chat_id, API::Types::Coercible::Int

#user_idInteger

Returns ID of the user to be added to the chat.

Returns:

  • (Integer)

    ID of the user to be added to the chat.



26
# File 'lib/vk/api/messages/methods/add_chat_user.rb', line 26

attribute :user_id, API::Types::Coercible::Int