আপলোড করা মিডিয়া ডাউনলোড করে, কিন্তু Google ড্রাইভ ফাইল নয়। ডাউনলোড URI /v1/media/{+name}?alt=media তে সমর্থিত। একটি Google ড্রাইভ ফাইল থেকে বাইট রপ্তানি করতে, Google ড্রাইভে files.export পদ্ধতি দেখুন৷
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-10 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"]]