Class: Vk::API::Photos::Methods::GetChatUploadServer

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

Overview

Returns an upload link for chat cover pictures.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Photos::Methods::GetChatUploadServer

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :chat_id (Integer)

    ID of the chat for which you want to upload a cover photo.

  • :crop_x (Integer)
  • :crop_y (Integer)
  • :crop_width (Integer)

    Width (in pixels) of the photo after cropping.


# File 'lib/vk/api/photos/methods/get_chat_upload_server.rb', line 15

Instance Method Details

#chat_idInteger

Returns ID of the chat for which you want to upload a cover photo.

Returns:

  • (Integer)

    ID of the chat for which you want to upload a cover photo.


26
# File 'lib/vk/api/photos/methods/get_chat_upload_server.rb', line 26

attribute :chat_id, API::Types::Coercible::Int

#crop_widthInteger

Returns Width (in pixels) of the photo after cropping.

Returns:

  • (Integer)

    Width (in pixels) of the photo after cropping.


32
# File 'lib/vk/api/photos/methods/get_chat_upload_server.rb', line 32

attribute :crop_width, API::Types::Coercible::Int.optional.default(nil)

#crop_xInteger

Returns:

  • (Integer)

28
# File 'lib/vk/api/photos/methods/get_chat_upload_server.rb', line 28

attribute :crop_x, API::Types::Coercible::Int.optional.default(nil)

#crop_yInteger

Returns:

  • (Integer)

30
# File 'lib/vk/api/photos/methods/get_chat_upload_server.rb', line 30

attribute :crop_y, API::Types::Coercible::Int.optional.default(nil)