Sha256: 73577522182e7a2d51467cd09c9c8361f2b10cc9e4feb60790d6806c7660193f

Contents?: true

Size: 930 Bytes

Versions: 1

Compression:

Stored size: 930 Bytes

Contents

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

module Vk
  module API
    class Messages < Vk::Schema::Namespace
      module Methods
        # Adds a new user to a chat.
        class AddChatUser < Schema::Method
          # @!group Properties

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

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Integer] :chat_id Chat ID.
          #   @option arguments [Integer] :user_id ID of the user to be added to the chat.
          #   @return [Messages::Methods::AddChatUser]

          # @!group Arguments

          # @return [Integer] Chat ID.
          attribute :chat_id, API::Types::Coercible::Int.optional
          # @return [Integer] ID of the user to be added to the chat.
          attribute :user_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/add_chat_user.rb