본문으로 건너뛰기

메타 데이터

메타 데이터 수정

주의

사용자 자신이 전송한 메시지만 수정할 수 있습니다.

Parameter

속성설명유형기본값필수여부
channel_id채널 아이디String없음O
message_id메시지 아이디String없음O
metakey는 소/대문자, 한글, _, - 만 사용할 수 있으며 100byte string 으로 제한됩니다. value는 200byte string 으로 제합됩니다. key-value set은 최대 10개까지 저장할 수 있습니다.Object없음O
try {
const channel_id = 'Group Channel ID';
const message_id = MESSAGE_ID // number;
const meta = {key1: 'value1', key2: 'value2', ...};

const message = await gitpleLiveChatClient.groupChannel.updateMessageMeta(channel_id, message_id, meta);
} catch (error) {
// handle error
}

메타 데이터 삭제

주의

사용자 자신이 전송한 메시지만 삭제할 수 있습니다.

Parameter

속성설명유형기본값필수여부
channel_id채널 아이디String없음O
message_id메시지 아이디String없음O
keys키 배열[String]없음O
try {
const channel_id = 'Group Channel ID';
const message_id = MESSAGE_ID // number;
const keys = ['key1', 'key2', ...];

const message = await gitpleLiveChatClient.groupChannel.deleteMessageMeta(channel_id, keys);
} catch (error) {
// handle error
}