//core/com.petersamokhin.vksdk.core.api/VkApiUploader/uploadPhotoForMessage
uploadPhotoForMessage¶
[common]\ suspend fun uploadPhotoForMessage(peerId: Int, item: UploadableContent): String?
Upload photo to messages and get the photo_id
Return¶
Attachment string, e.g. photo12345678901_123456
Parameters¶
common
peerId | The conversation ID where to upload the photo |
item | Item as UploadableContent |
[common]\ suspend fun uploadPhotoForMessage(peerId: Int, file: FileOnDisk): String?
Upload photo to messages and get the photo_id
Return¶
Attachment string, e.g. photo12345678901_123456
Parameters¶
common
peerId | The conversation ID where to upload the photo |
file | Item as FileOnDisk |
[common]\ suspend fun uploadPhotoForMessage(peerId: Int, bytes: ByteArray): String?
Upload photo to messages and get the photo_id
Return¶
Attachment string, e.g. photo12345678901_123456
Parameters¶
common
peerId | The conversation ID where to upload the photo |
bytes | Item as ByteArray |
[common]\ suspend fun uploadPhotoForMessage(peerId: Int, url: String): String?
Upload photo to messages and get the photo_id
Return¶
Attachment string, e.g. photo12345678901_123456
Parameters¶
common
peerId | The conversation ID where to upload the photo |
url | Item by URL |