Class: Vk::API::Messages::Methods::SetChatPhoto

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

Overview

Sets a previously-uploaded picture as the cover picture of a chat.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Messages::Methods::SetChatPhoto

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :file (String)

    Upload URL from the 'response' field returned by the method upon successfully uploading an image.


# File 'lib/vk/api/messages/methods/set_chat_photo.rb', line 15

Instance Method Details

#fileString

Returns Upload URL from the 'response' field returned by the method upon successfully uploading an image.

Returns:

  • (String)

    Upload URL from the 'response' field returned by the method upon successfully uploading an image.


23
# File 'lib/vk/api/messages/methods/set_chat_photo.rb', line 23

attribute :file, API::Types::Coercible::String