chat_idinteger | string · requireddownload_media
Download media from a message in a chat. Args: chat_id: The chat ID or username. message_id: The message ID containing the media. file_path: Optional absolute or relative path under allowed roots. If omitted, saves into `<first_root>/downloads/`.
Parameters
message_idinteger · requiredfile_pathstring · default nullaccountstring · default null