uploadMediaAttachment

abstract suspend fun uploadMediaAttachment(file: File, thumbnail: File?, description: String?, focus: String?): Attachment

Creates an attachment to be used with a new status.

Parameters

file

The file to be attached.

thumbnail

The custom thumbnail of the media to be attached.

description

A plain-text description of the media, for accessibility purposes.

focus

Two floating points (x,y), comma-delimited, ranging from -1.0 to 1.0