Sha256: fdaeee8931915a4c5d1f4940a68ff067abf00501783279420ef33f166d90a197

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

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

module Vk
  module API
    class Photos < Vk::Schema::Namespace
      module Methods
        # Returns an upload link for chat cover pictures.
        class GetChatUploadServer < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'photos.getChatUploadServer'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Integer] :chat_id ID of the chat for which you want to upload a cover photo.
          #   @option arguments [Integer] :crop_x 
          #   @option arguments [Integer] :crop_y 
          #   @option arguments [Integer] :crop_width Width (in pixels) of the photo after cropping.
          #   @return [Photos::Methods::GetChatUploadServer]

          # @!group Arguments

          # @return [Integer] ID of the chat for which you want to upload a cover photo.
          attribute :chat_id, API::Types::Coercible::Int.optional
          # @return [Integer] 
          attribute :crop_x, API::Types::Coercible::Int.optional
          # @return [Integer] 
          attribute :crop_y, API::Types::Coercible::Int.optional
          # @return [Integer] Width (in pixels) of the photo after cropping.
          attribute :crop_width, 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/photos/methods/get_chat_upload_server.rb