Bot

Flexible template 메시지 복사 문의

이규환

2022.02.28읽음 1188

안녕하세요.

Bubble container 내에 여러 component를 사용해서 message를 보내고 있는데요, 대화방에서 메시지를 복사할 때 altText가 아닌 말풍선에 보이는 text들을 복사하고 싶습니다. text 드래그는 되지 않고 우클릭 후 복사 버튼을 누르면 altText가 복사되는데 다른 방법이 있을까요?

예를 들면, 아래와 같은 요청을 보냈을 때 대화방 메시지를 복사하면 altText 필드에 정의된 "this is altText"가 복사되는데 "title..title.. text contents..text contents.." 와 같이 text component에 정의한 텍스트를 복사하고 싶습니다.

  • Request body

{
"roomId": "123456",
"content": {
"type": "flex",
"altText": "this is altText",
"contents": {
"type": "bubble",
"body": {
"type": "box",
"layout": "vertical",
"spacing": "md",
"contents": [{
"type": "box",
"layout": "vertical",
"spacing": "md",
"contents": [{
"type": "text",
"wrap": true,
"contents": [{
"type": "span",
"text": "title..title..",
"size": "lg",
"weight": "bold"
}]
},
{
"type": "text",
"wrap": true,
"text": "text contents..text contents.."
},
{
"type": "button",
"style": "link",
"action": {
"type": "uri",
"label": "Link style button",
}
}
]
}]
}
}
}
}


댓글0

이전 글웍스로부터 발급받은 Server Token 만료 시간 관련 질문드립니다.
다음 글게시판 알림 채팅봇 안되나요
목록

궁금한 점을 해결하지 못하셨나요?
지금 바로 NAVER WORKS 사용자들에게 물어보세요!