Raw.messages.UploadMedia

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: 185
Constructor ID: 0x14967978

Property

  • businessConnectionId : string or undefined

    Whether the media will be used only in the specified business connection, and not directly by the bot.

  • peer : Raw.TypeInputPeer

    The chat, can be inputpeerempty for bots and inputpeerself for users.

  • media : Raw.TypeInputMedia

    File uploaded in chunks as described in files

Results

Raw.TypeMessageMedia

Bots can use