Class: Vk::API::Messages::Methods::RemoveChatUser

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

Overview

Allows the current user to leave a chat or, if the current user started the chat, allows the user to remove another user from the chat.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :chat_id (Integer)

    Chat ID.

  • :user_id (String)

    ID of the user to be removed from the chat.


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

Instance Method Details

#chat_idInteger

Returns Chat ID.

Returns:

  • (Integer)

    Chat ID.


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

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

#user_idString

Returns ID of the user to be removed from the chat.

Returns:

  • (String)

    ID of the user to be removed from the chat.


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

attribute :user_id, API::Types::Coercible::String