봇 채널 참여 / 나가기
봇 채널 참여
POST
https://api.talkplus.io/v1.4/api/bots/:botId/channels/:channelId/join
봇이 채널에 참여합니다.
Path Parameters
Name
Type
Description
botId*
string
channelId*
string
Headers
Name
Type
Description
content-type
string
application/json
app-id*
string
App ID
api-key*
string
App API key
{
"channel": {
"id": "channel123",
"name": "MyFirstChannel",
"ownerId": "user123",
"type": "private",
"imageUrl": "image url",
"invitationCode": "",
"isFrozen": false,
"hideMessagesBeforeJoin": false,
"category": "",
"subcategory": "",
"privateTag": "",
"privateData": {},
"memberCount": 2,
"maxMemberCount": 100,
"data": {
"someMetaKey1": "someMetaValue1",
"someMetaKey2": "someMetaValue2"
},
"members": [
{
"id": "user123",
"username": "john",
"profileImageUrl": "http://cnd.test.com/123.jpg",
"data": {},
"memberInfo": {},
"lastReadAt": 1583924400,
"lastSentAt": 1583924400,
"updatedAt": 1583924400,
"createdAt": 1583921400
},
{
"id": "user456",
"username": "james",
"profileImageUrl": "http://cnd.test.com/456.jpg",
"data": {},
"memberInfo": {},
"lastReadAt": 1583924400,
"lastSentAt": 1583924400,
"updatedAt": 1583924400,
"createdAt": 1583921400
}
],
"mutedUsers": [],
"bannedUsers": [],
"bots": [
{
"id": "bot_001",
"name": "CS Bot",
"profileImageUrl": "http://cnd.test.com/123.jpg",
"type": "cs"
}
],
"updatedAt": 1583924400,
"createdAt": 1583921400,
"unreadCount": 0,
"lastReadAt": 0,
"lastMessage": {
"id": "sdf2l5s9j",
"channelId": "channel123",
"userId": "user456",
"username": "myUsername",
"profileImageUrl": "http://cdn.test.com/123.jpg",
"type": "message",
"text": "Hello world",
"data": {
"customField": "customData"
},
"parentMessage": {},
"translations": {},
"reactions": {"happy": 1},
"createdAt": 1583921400
}
}
}
{
"error": true,
"code": "1006",
"message": "Unauthorized"
}
봇 채널 나가기
POST
https://api.talkplus.io/v1.4/api/bots/:botId/channels/:channelId/leave
봇이 채널에서 나갑니다.
Path Parameters
Name
Type
Description
botId*
string
channelId*
string
Headers
Name
Type
Description
content-type
string
application/json
app-id*
string
App ID
api-key*
string
App API key
{
"channel": {
"id": "channel123",
"name": "MyFirstChannel",
"ownerId": "user123",
"type": "private",
"imageUrl": "image url",
"invitationCode": "",
"isFrozen": false,
"hideMessagesBeforeJoin": false,
"category": "",
"subcategory": "",
"privateTag": "",
"privateData": {},
"memberCount": 2,
"maxMemberCount": 100,
"data": {
"someMetaKey1": "someMetaValue1",
"someMetaKey2": "someMetaValue2"
},
"members": [
{
"id": "user123",
"username": "john",
"profileImageUrl": "http://cnd.test.com/123.jpg",
"data": {},
"memberInfo": {},
"lastReadAt": 1583924400,
"lastSentAt": 1583924400,
"updatedAt": 1583924400,
"createdAt": 1583921400
},
{
"id": "user456",
"username": "james",
"profileImageUrl": "http://cnd.test.com/456.jpg",
"data": {},
"memberInfo": {},
"lastReadAt": 1583924400,
"lastSentAt": 1583924400,
"updatedAt": 1583924400,
"createdAt": 1583921400
}
],
"mutedUsers": [],
"bannedUsers": [],
"bots": [],
"updatedAt": 1583924400,
"createdAt": 1583921400,
"unreadCount": 0,
"lastReadAt": 0,
"lastMessage": {
"id": "sdf2l5s9j",
"channelId": "channel123",
"userId": "user456",
"username": "myUsername",
"profileImageUrl": "http://cdn.test.com/123.jpg",
"type": "message",
"text": "Hello world",
"data": {
"customField": "customData"
},
"parentMessage": {},
"translations": {},
"reactions": {"happy": 1},
"createdAt": 1583921400
}
}
}
{
"error": true,
"code": "1006",
"message": "Unauthorized"
}
Last updated