Method: users.spaces.updateSpaceReadState
HTTP 要求
PATCH https://chat.googleapis.com/v1/{spaceReadState.name=users/*/spaces/*/spaceReadState}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
spaceReadState.name |
string
聊天室讀取狀態的資源名稱。 格式:users/{user}/spaces/{space}/spaceReadState
|
查詢參數
參數 |
updateMask |
string (FieldMask format)
必要欄位。要更新的欄位路徑。目前支援的欄位路徑:
如果 lastReadTime 早於最新訊息建立時間,UI 就會顯示為未讀取。 如要將聊天室標示為已讀,請將 lastReadTime 設為晚於最新訊息建立時間的值。系統會將 lastReadTime 強制轉換成最新的訊息建立時間。請注意,聊天室讀取狀態只會影響聊天室頂層對話中顯示的訊息讀取狀態。討論串中的回覆不會受到這個時間戳記的影響,而是取決於討論串的讀取狀態。
|
要求主體
要求主體包含 SpaceReadState
的例項。
回應主體
如果成功,回應主體會包含 SpaceReadState
的執行例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/chat.users.readstate
詳情請參閱授權指南。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-23 (世界標準時間)。
[null,null,["上次更新時間:2024-10-23 (世界標準時間)。"],[[["This API updates a user's read state within a Google Chat space, marking messages as read or unread."],["It requires user authentication and the `chat.users.readstate` OAuth scope for authorization."],["The request uses the PATCH method and specifies the space read state resource name in the URL path."],["You can control which fields to update using the `updateMask` query parameter, such as setting the `lastReadTime` to mark a space as read."],["The request and response bodies utilize the `SpaceReadState` object to represent the user's read state information."]]],[]]