sender.getMediaItems(), file downloads, and group member lists. When handling user-uploaded files, use standardized MediaItem values instead of building platform-specific download URLs.
Event methods
getMediaItems()
getMediaItems() first returns media captured by the latest listen(...) / input(...). If no waited-input media exists, it returns media_items / mediaItems from the current event data.
fileDownload(url, path=None)
Download a remote URL, base64://..., or data URI to the local file directory.
downloadAdapterFile(file, options=None, timeout=None)
Download a file item received by an adapter. You can pass a MediaItem returned by sender.getMediaItems() directly.
download_adapter_file(...) is the Python alias of downloadAdapterFile(...).
getGroupMemberList(group_id_or_options=None, options=None, timeout=None)
Get the group member list. Pass a group ID or an options dictionary.
get_group_member_list(...) is the Python alias of getGroupMemberList(...).
Next steps
- Media sources and mixed syntax:
Media sending - Store download results:
Storage and routes