تنزيل الوسائط المحمَّلة، ولكن ليس ملفات Google Drive يمكن تنزيل المحتوى باستخدام معرّف الموارد المنتظم /v1/media/{+name}?alt=media. لتصدير عدد البايتات من ملف على Google Drive، اطّلِع على طريقة files.export في Google Drive.
طلب HTTP
GET https://chat.googleapis.com/v1/media/{resourceName=**}
تاريخ التعديل الأخير: 2024-11-05 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]