Class: Vk::API::Photos::Methods::GetChatUploadServer
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Photos::Methods::GetChatUploadServer
- Defined in:
- lib/vk/api/photos/methods/get_chat_upload_server.rb
Overview
Returns an upload link for chat cover pictures.
Arguments collapse
-
#chat_id ⇒ Integer
ID of the chat for which you want to upload a cover photo.
-
#crop_width ⇒ Integer
Width (in pixels) of the photo after cropping.
- #crop_x ⇒ Integer
- #crop_y ⇒ Integer
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Photos::Methods::GetChatUploadServer
|
# File 'lib/vk/api/photos/methods/get_chat_upload_server.rb', line 15
|
Instance Method Details
#chat_id ⇒ Integer
Returns 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_width ⇒ Integer
Returns 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) |