messages.UploadMedia#
- class pyrogram.raw.functions.messages.UploadMedia#
Upload a file and associate it to a chat (without actually sending it to the chat) May also be used in a business connection, not by wrapping the query in invokeWithBusinessConnection , but rather by specifying the business connection ID in the business_connection_id parameter.
- Details:
Layer:
220ID:
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.
- peer (
- Returns: