UploadMedia

class pyrogram.raw.functions.messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat).

Details
  • Layer: 126

  • ID: 0x519bc2b1

Parameters
  • peer (InputPeer) – The chat, can be an inputPeerEmpty for bots.

  • media (InputMedia) – File uploaded in chunks.

Returns

MessageMedia – Media.