Spaces:
Running
on
Zero
Running
on
Zero
test
Browse files- routers/webhook.py +11 -10
routers/webhook.py
CHANGED
@@ -152,16 +152,17 @@ async def webhook(request: Request):
|
|
152 |
#return
|
153 |
#test case
|
154 |
#########################################################################
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
|
|
165 |
if not line_signature:
|
166 |
raise HTTPException(status_code=400, detail="X-Line-Signature header is missing.")
|
167 |
|
|
|
152 |
#return
|
153 |
#test case
|
154 |
#########################################################################
|
155 |
+
if message not in ["買取方法", "取扱商品","本日の金価格"]:
|
156 |
+
print("start reply -----------------------------------------------"+reply_token)
|
157 |
+
first_line = text.split('\n')[0]
|
158 |
+
# test_prompt
|
159 |
+
line_bot_api = LineBotApi(ChannelAccessToken)
|
160 |
+
line_bot_api.reply_message(
|
161 |
+
reply_token,
|
162 |
+
TextSendMessage(text="固定メッセージです クレジットは消費しません")
|
163 |
+
)
|
164 |
+
print("End replay -----------------------------------------------")
|
165 |
+
exit
|
166 |
if not line_signature:
|
167 |
raise HTTPException(status_code=400, detail="X-Line-Signature header is missing.")
|
168 |
|