forked from ZCchann/line-trace_anime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reply_message.py
33 lines (31 loc) · 1006 Bytes
/
reply_message.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import json
def reply_message(replyToken):
huifu = {
"replyToken": replyToken,
"messages": [{
"type": "text",
"text": "请发送完整图片,屏幕截图、部分截图等有黑边或非图片信息资讯的内容会造成搜索结果有误",
"quickReply": { #quickReply模块 调用line相簿
"items": [
{
"type": "action",
"action": {
"type": "cameraRoll",
"label": "点我发送图片"
}
}
]
}
}
]
}
return json.dumps(huifu)
def error_message(replyToken):
huifu = {
"replyToken": replyToken,
"messages": [{
"type": "text",
"text": "今日机器人搜索次数已达上限 请于24小时后再进行搜索"
}]
}
return json.dumps(huifu)