Part 代表通訊內容區段的容器。部分可以是純文字、某種檔案 (圖片、影片等),或結構化資料 Blob (即 JSON)。
| JSON 表示法 |
|---|
{ "metadata": { object }, "filename": string, "mediaType": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "text": string, "raw": string, "url": string, "data": value // End of mutually exclusive fields. } |
| 欄位 | |
|---|---|
metadata |
選用。與這個部分相關聯的中繼資料。 |
filename |
檔案的選用 |
mediaType |
部分內容的 |
| 以下列出互斥欄位。回應中最多會設定一個欄位: | |
text |
|
raw |
檔案的 Base64 編碼字串。 |
url |
指向檔案內容的 |
data |
任意結構化 |
| 互斥欄位的結尾。 | |