Raw.messages.UploadMedia
Upload a file and associate it to a chat (without actually sending it to the chat)
messages.uploadMedia#14967978 flags:# business_connection_id:flags.0?string peer:InputPeer media:InputMedia = MessageMedia;export namespace Raw {
export namespace messages {
export class UploadMedia {
constructor(params: {
businessConnectionId?: string;
peer: Raw.TypeInputPeer;
media: Raw.TypeInputMedia;
}) {}
}
}
}This is a function constructor, you can use it as method when call invoke
Layer: 201
Constructor ID: 0x14967978
Property
businessConnectionId: string or undefinedWhether the media will be used only in the specified business connection, and not directly by the bot.
peer: Raw.TypeInputPeerThe chat, can be inputpeerempty for bots and inputpeerself for users.
media: Raw.TypeInputMediaFile uploaded in chunks as described in files