Class: Vk::API::Messages::Methods::CreateChat

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

Overview

Creates a chat with several participants.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

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

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :user_ids (Array) —

    IDs of the users to be added to the chat.

  • :title (String) —

    Chat title.



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

Instance Method Details

#title ⇒ String

Returns Chat title.

Returns:

  • (String) —

    Chat title.



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

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

#user_ids ⇒ Array

Returns IDs of the users to be added to the chat.

Returns:

  • (Array) —

    IDs of the users to be added to the chat.



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

attribute :user_ids, API::Types::Coercible::Array.member(API::Types::Coercible::Int)