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: 194

  • ID: 14967978

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

  • media (InputMedia) – File uploaded in chunks as described in files »

  • business_connection_id (str, optional)

Returns:

MessageMedia