Sha256: 83c6b0be85543ff50991557db740f2fc093635929bf669971ae46fcc049e7b56

Contents?: true

Size: 1.56 KB

Versions: 1

Compression:

Stored size: 1.56 KB

Contents

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

module Vk
  module API
    class Messages < Vk::Schema::Namespace
      module Methods
        # Returns information about a chat.
        class GetChat < Schema::Method
          # @!group Properties

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

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Integer] :chat_id Chat ID.
          #   @option arguments [Array] :chat_ids Chat IDs.
          #   @option arguments [Array] :fields Profile fields to return.;
          #   @option arguments [String] :name_case Case for declension of user name and surname:; 'nom' — nominative (default); 'gen' — genitive ; 'dat' — dative; 'acc' — accusative ; 'ins' — instrumental ; 'abl' — prepositional
          #   @return [Messages::Methods::GetChat]

          # @!group Arguments

          # @return [Integer] Chat ID.
          attribute :chat_id, API::Types::Coercible::Int.optional
          # @return [Array] Chat IDs.
          attribute :chat_ids, API::Types::Coercible::Array.optional
          # @return [Array] Profile fields to return.;
          attribute :fields, API::Types::Coercible::Array.optional
          # @return [String] Case for declension of user name and surname:; 'nom' — nominative (default); 'gen' — genitive ; 'dat' — dative; 'acc' — accusative ; 'ins' — instrumental ; 'abl' — prepositional
          attribute :name_case, API::Types::Coercible::String.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/get_chat.rb