messages.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: 158

  • ID: 519BC2B1

Parameters:
  • peer (InputPeer) – The chat, can be inputPeerEmpty for bots and inputPeerSelf for users.

  • media (InputMedia) – File uploaded in chunks.

Returns:

MessageMedia