הורדות של מדיה שהועלו, אבל לא קבצים מ-Google Drive. ההורדה נתמכת ב-URI /v1/media/{+name}?alt=media. כדי לייצא בייטים מקובץ ב-Google Drive, אפשר לעיין בשיטה files.export ב-Google Drive.
בקשת HTTP
GET https://chat.googleapis.com/v1/media/{resourceName=**}
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2024-11-05 (שעון UTC)."],[[["Downloads uploaded media, excluding Google Drive files, using the `/v1/media/{+name}?alt=media` URI."],["To download, use a GET request specifying the media's resource name in the URL path."],["The response provides the file content as bytes, supporting partial downloads via the `Range` header."],["Authorization requires a Chat scope like `chat.bot`, `chat.messages`, or `chat.messages.readonly`."]]],["The core functionality involves downloading uploaded media via a `GET` HTTP request to `/v1/media/{resourceName}`. The `resourceName` path parameter specifies the media to download. The request body must be empty. A successful response returns the file content as bytes. Partial downloads are supported using the `Range` header. Access requires specific OAuth scopes: `chat.bot`, `chat.messages`, or `chat.messages.readonly`. Google Drive files utilize a separate files.export method.\n"]]