REST Resource: media
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]