Here's https://developers.line.biz/en/reference/messaging-api/#send-reply-message
If you can see in shell
, it have a message
key with an array value,
curl -v -X POST https://api.line.me/v2/bot/message/reply \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {channel access token}' \
-d '{
"replyToken":"nHuyWiB7yP5Zw52FIkcQobQuGDXCTA",
"messages":[
{
"type":"text",
"text":"Hello, user"
},
{
"type":"text",
"text":"May I help you?"
}
]
}'
but if you change it to python, it only send one text which is 'Hello world'. I want to know if that's possible using line-bot-sdk-python? Or should I create http request manually?
- 0
Hello,
Could you share the relevant documentation?
- 0