POST/bots/{botId}/channels/{channelId}/messages

봇이 참여한 메시지방에 메시지를 전송할 수 있다.
각 템플릿 또는 빠른 답장 버튼을 이용하여 postback 메시지를 callback으로 서버에서 수신할 수 있다. postback 형식은 메시지(callback) 수신을 참고한다.

각 템플릿과 빠른 답장의 구조는 다음과 같다. Image
[그림 1 Button template]
Image
[그림 2 List template]
Image
[그림 3 Carousel template]
Image
[그림 4 Image carousel template]
Image
[그림 5 Flexible template]
Image
[그림 6 Quick reply]

Authorization

oauth2

OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.

Scope

bot.message
bot

HTTP Request

POSThttps://www.worksapis.com/v1.0/bots/{botId}/channels/{channelId}/messages

Path Parameters

ParameterTypeDescription
botId integer 

봇 ID


required
example : 2000001
format : int64 
channelId string 

메시지방 ID

참고
메시지방 서랍 메뉴에서 '채널 ID'를 선택하면 channelId를 확인 할 수 있습니다.


required
example : 12345a12-b12c-12d3-e123fghijkl 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

메시지 유형을 참고한다.

Response

HTTP 201

OK