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:
198
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) – Whether the media will be used only in the specified business connection », and not directly by the bot.
- Returns: