用戶訊息
本教學將說明如何透過 API 來取得一個機器人下的用戶訊息紀錄。
Get Message history
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
{
"res": {
"messages": [
{
"category": "conversation",
"type": "reply",
"data": {
"quickReplies": [],
"text": "文字內容",
"type": "text"
},
"timestamp": 1623918332624,
"mid": "0_29612160-1bd1-4358-aee7-9a0ff605cae6"
},
{
"category": "conversation",
"type": "click",
"timestamp": 1623918331847,
"senderId": "xxxxxx",
"data": {
"type": "click",
"title": "快速回覆"
}
}
],
"desc": true
},
"status": 200
}Response body
Res 物件
Message 物件
Data 物件
QuickReply 物件
Button 物件
Card 物件
範例 Message object 訊息
click Type
text Type
image/video/audio/file Type
sticker Type
follow/unfollow Type
open_url Type
Reply/Push Type with data of text type
Reply/Push Type with data of image/video/audio type
Reply/Push Type with data of imagemap type
Reply/Push Type with data of gallery type
Last updated