Spaces:
Running
on
Zero
Running
on
Zero
test
Browse files- routers/webhook.py +3 -3
routers/webhook.py
CHANGED
@@ -54,7 +54,7 @@ async def webhook(request: Request):
|
|
54 |
|
55 |
print(webhook_url)
|
56 |
print(ChannelAccessToken)
|
57 |
-
exit
|
58 |
|
59 |
thread_name=""
|
60 |
###return
|
@@ -155,8 +155,8 @@ async def webhook(request: Request):
|
|
155 |
print("start reply -----------------------------------------------"+reply_token)
|
156 |
first_line = text.split('\n')[0]
|
157 |
# test_prompt
|
158 |
-
|
159 |
-
|
160 |
reply_token,
|
161 |
TextSendMessage(text="line replay test")
|
162 |
)
|
|
|
54 |
|
55 |
print(webhook_url)
|
56 |
print(ChannelAccessToken)
|
57 |
+
#exit
|
58 |
|
59 |
thread_name=""
|
60 |
###return
|
|
|
155 |
print("start reply -----------------------------------------------"+reply_token)
|
156 |
first_line = text.split('\n')[0]
|
157 |
# test_prompt
|
158 |
+
line_bot_api = LineBotApi(ChannelAccessToken)
|
159 |
+
line_bot_api.reply_message(
|
160 |
reply_token,
|
161 |
TextSendMessage(text="line replay test")
|
162 |
)
|