REST Resource: media
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[[["\u003cp\u003eThis page focuses on Google Chat file resources and how to interact with them.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use the provided methods to download or upload files within Google Chat.\u003c/p\u003e\n"],["\u003cp\u003eA "resource" in this context refers to any file linked in a Chat message, such as an attachment.\u003c/p\u003e\n"]]],["The document outlines the representation of a file within Google Chat, specifically as an attachment to a message. It details two primary methods for interacting with these files: `download`, which retrieves the file's content, and `upload`, which allows users to add a new file as an attachment. These methods manage the transfer of media data to and from the Google Chat platform.\n"],null,["# REST Resource: media\n\n- [Resource](#RESOURCE_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource\n--------\n\nA file in Google Chat. For example, a file attached to a message.\n\n| Methods ------- ||\n|----------------------------------------------------------------------|------------------------|\n| ### [download](/workspace/chat/api/reference/rest/v1/media/download) | Downloads media. |\n| ### [upload](/workspace/chat/api/reference/rest/v1/media/upload) | Uploads an attachment. |"]]