Sha256: 26c25bde3e5553d501ea3e2f88ab6a4ff254d349589a76bf8180f293a1efc569

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

# frozen_string_literal: true
require 'vk/api/objects'
require 'vk/schema/namespace'

module Vk
  module API
    class Messages < Vk::Schema::Namespace
      # @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
      class Chat < Vk::Schema::Object
        # @return [Integer] Chat ID
        attribute :id, API::Types::Coercible::Int
        # @return [String] Chat type
        attribute :type, API::Types::Coercible::String
        # @return [Integer] Chat creator ID
        attribute :admin_id, API::Types::Coercible::Int
        # @return [Array] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :users, API::Types::Coercible::Array
        # @return [API::Messages::ChatPushSettings] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :push_settings, Dry::Types[API::Messages::ChatPushSettings].optional
        # @return [String] URL of the preview image with 50 px in width
        attribute :photo_50, API::Types::Coercible::String.optional
        # @return [String] URL of the preview image with 100 px in width
        attribute :photo_100, API::Types::Coercible::String.optional
        # @return [String] URL of the preview image with 200 px in width
        attribute :photo_200, API::Types::Coercible::String.optional
      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/chat.rb