创建回应并将其添加到消息中。如需查看示例,请参阅对消息添加回应。
- https://www.googleapis.com/auth/chat.messages.reactions.create
- https://www.googleapis.com/auth/chat.messages.reactions
- https://www.googleapis.com/auth/chat.messages
- https://www.googleapis.com/auth/chat.import(仅限导入模式聊天室)
HTTP 请求
POST https://chat.googleapis.com/v1/{parent=spaces/*/messages/*}/reactions
网址采用 gRPC 转码语法。
路径参数
| 参数 | |
|---|---|
| parent | 
 必需。创建回应的消息。 格式: | 
请求正文
请求正文包含一个 Reaction 实例。
响应正文
如果成功,响应正文将包含一个新创建的 Reaction 实例。
授权范围
需要以下 OAuth 范围之一:
- https://www.googleapis.com/auth/chat.import
- https://www.googleapis.com/auth/chat.messages
- https://www.googleapis.com/auth/chat.messages.reactions
- https://www.googleapis.com/auth/chat.messages.reactions.create
如需了解详情,请参阅授权指南。