the media to convert
how to treat an uploaded file
Optionalattributes?: TypeDocumentAttribute[]OptionalforceDocument?: booleanOptionalisPhoto?: booleanOptionalnosoundVideo?: booleanOptionalspoiler?: booleanOptionalsupportsStreaming?: booleanOptionalttlSeconds?: numberOptionalvideoCover?: TypeInputPhotoOptionalvideoNote?: booleanOptionalvideoTimestamp?: numberOptionalvoiceNote?: boolean
Similar to :meth:
get_input_peer, but for media.If the media is :tl:
InputFileandis_photois known to beTrue, it will be treated as an :tl:InputMediaUploadedPhoto. Else, the rest of parameters will indicate how to treat it.