Skip to Content
Nazu

chat

클래스

클래스설명
AudioChat음성 메세지
Chat메세지(MessageChat)와 피드(FeedChat)의 공통 부모
DeletedChat삭제된 메세지
DeleteFeedChat메세지가 삭제된 피드
DemoteFeedChat부방장이 해제된 피드
EditChat수정된 메세지
EditFeedChat메세지가 수정된 피드
EmoticonChat이모티콘 메세지
FeedChat입장, 퇴장, 삭제 같은 피드. 종류마다 하위 클래스로 받습니다.
FileChat파일 메세지
HandoverFeedChat방장이 바뀐 피드
HiddenChat가려진 메세지. 원본을 찾지 못하면 id 말고는 모두 null
HideFeedChat방장이나 부방장이 메세지를 가린 피드
InviteFeedChat일반 채팅방에 유저가 초대된 피드
JoinFeedChat오픈채팅방에 유저가 들어온 피드
KickFeedChat오픈채팅방에서 유저가 강퇴된 피드. 팀채팅 강퇴는 LeaveFeedChat으로 받습니다.
LeaveFeedChat유저가 채팅방을 나간 피드
ManagerSpeakerModeFeedChat관리자만 말하기를 켜거나 끈 피드
MapChat지도 메세지
MemberTypeChangeFeedChat부방장 임명·해제와 방장 위임 피드의 부모. 아래 속성은 모두 선택적이고, isPromote() 같은 메서드로 좁히면 해당 속성이 항상 있습니다.
MessageChat메세지. message 이벤트 리스너의 chat 인자나 메세지 조회 메서드로 받습니다.
MiniEmoticonChat미니 이모티콘이 들어 있는 메세지
MultiPhotoChat여러 장의 사진을 묶은 메세지
NormalChat일반 텍스트 메세지
OpenChannelDeleteFeedChat오픈채팅방이 삭제된 피드
PhotoChat사진 메세지
ProfileChat프로필 공유 메세지
PromoteFeedChat부방장이 임명된 피드
ReplyChat답장 메세지. 전용 타입 가드가 없으니 chat instanceof ReplyChat으로 확인합니다.
UnknownFeedChat따로 처리하지 않는 피드. 챗봇 피드도 여기로 옵니다. feedType을 읽지 못하면 -1
VideoChat동영상 메세지

인터페이스

Attachment

메세지 첨부 데이터. 키는 카카오톡이 보낸 원본 그대로이며, 아래에 없는 키가 더 있을 수 있습니다. 메세지 종류별 첨부 데이터는 이 타입을 확장합니다.

확장

  • Record<string, unknown>

에 의해 확장됨

인덱싱 가능

[key: string]: unknown

속성

속성수정자타입설명
all_mention?readonlyobject@all로 전체를 멘션했을 때만 있습니다. 한 명씩 한 멘션은 mentions에 들어갑니다.
all_mention.atreadonlynumber멘션 위치. mentions의 at과 달리 숫자 하나
mentions?readonlyobject[]멘션 목록
shout?readonlyboolean외치기 메세지 여부
urls?readonlystring[]메세지에 들어 있는 URL 목록

AudioAttachment

음성 메세지의 첨부 데이터

확장

인덱싱 가능

[key: string]: unknown

속성

속성수정자타입설명상속받은 타입:
all_mention?readonlyobject@all로 전체를 멘션했을 때만 있습니다. 한 명씩 한 멘션은 mentions에 들어갑니다.Attachment.all_mention
all_mention.atreadonlynumber멘션 위치. mentions의 at과 달리 숫자 하나-
dreadonlynumber--
expirereadonlynumber--
kreadonlystring--
mentions?readonlyobject[]멘션 목록Attachment.mentions
sreadonlynumber--
shout?readonlyboolean외치기 메세지 여부Attachment.shout
urlreadonlystring음성 파일 주소-
urls?readonlystring[]메세지에 들어 있는 URL 목록Attachment.urls

EmoticonAttachment

이모티콘 메세지의 첨부 데이터

확장

인덱싱 가능

[key: string]: unknown

속성

속성수정자타입설명상속받은 타입:
all_mention?readonlyobject@all로 전체를 멘션했을 때만 있습니다. 한 명씩 한 멘션은 mentions에 들어갑니다.Attachment.all_mention
all_mention.atreadonlynumber멘션 위치. mentions의 at과 달리 숫자 하나-
altreadonlystring이모티콘 대체 텍스트-
height?readonlystring | number--
mentions?readonlyobject[]멘션 목록Attachment.mentions
msg?readonlystring--
namereadonlystring이모티콘 이름-
pathreadonlystring이모티콘 경로-
s?readonlystring | number--
shout?readonlyboolean외치기 메세지 여부Attachment.shout
sound?readonlystring--
type?readonlystring--
urls?readonlystring[]메세지에 들어 있는 URL 목록Attachment.urls
welcome?readonlyboolean--
width?readonlystring | number--
xconVersion?readonlystring | number--

FileAttachment

파일 메세지의 첨부 데이터

확장

인덱싱 가능

[key: string]: unknown

속성

속성수정자타입설명상속받은 타입:
all_mention?readonlyobject@all로 전체를 멘션했을 때만 있습니다. 한 명씩 한 멘션은 mentions에 들어갑니다.Attachment.all_mention
all_mention.atreadonlynumber멘션 위치. mentions의 at과 달리 숫자 하나-
csreadonlystring--
expirereadonlynumber--
kreadonlystring--
mentions?readonlyobject[]멘션 목록Attachment.mentions
namereadonlystring파일 이름-
sreadonlynumber--
shout?readonlyboolean외치기 메세지 여부Attachment.shout
sizereadonlynumber파일 크기-
urlreadonlystring파일 주소-
urls?readonlystring[]메세지에 들어 있는 URL 목록Attachment.urls

MapAttachment

지도 메세지의 첨부 데이터

속성

속성수정자타입설명
addressreadonlystring | null주소. 없으면 null
latreadonlynumber위도
lngreadonlynumber경도
namereadonlystring | null장소 이름. 장소를 공유하지 않았으면 null
urlreadonlystring카카오맵 링크

MentionAttachment

멘션이 있는 메세지의 첨부 데이터

확장

인덱싱 가능

[key: string]: unknown

속성

속성수정자타입설명오버라이드 대상:상속받은 타입:
all_mention?readonlyobject@all로 전체를 멘션했을 때만 있습니다. 한 명씩 한 멘션은 mentions에 들어갑니다.Attachment.all_mention-
all_mention.atreadonlynumber멘션 위치. mentions의 at과 달리 숫자 하나--
mentions?readonlyobject[]멘션 목록Attachment.mentions-
shout?readonlyboolean외치기 메세지 여부-Attachment.shout
urls?readonlystring[]메세지에 들어 있는 URL 목록-Attachment.urls

MessageChatRaw

메세지 원본 데이터

속성

속성수정자타입설명
attachmentreadonlyAttachment첨부 데이터
channelreadonlyChannelRaw메세지가 온 채팅방
logIdreadonlystring메세지 로그 ID
messagereadonlystring메세지 내용
modifyLogreadonlyMessageRevisionRaw[]수정 기록
scopereadonlyMessageScopeName메세지가 속한 범위
threadIdreadonlystring | null스레드 ID. 스레드에 속하지 않으면 null
typereadonlynumber원본 메세지 타입 번호
userreadonlyUserRaw | null보낸 유저. 정보가 없으면 null

MessageRevisionRaw

메세지 수정 기록 한 건

속성

속성수정자타입설명
messagereadonlystring이 수정의 메세지 내용
revisionreadonlynumber수정 번호

MiniEmoticonAttachment

미니 이모티콘이 들어 있는 메세지의 첨부 데이터

속성

속성수정자타입설명
itemsreadonlyobject[]메세지 안의 미니 이모티콘 목록
total_itemreadonlynumber-
total_lenreadonlynumber-

MultiPhotoAttachment

여러 장의 사진을 묶은 메세지의 첨부 데이터

확장

인덱싱 가능

[key: string]: unknown

속성

속성수정자타입설명상속받은 타입:
all_mention?readonlyobject@all로 전체를 멘션했을 때만 있습니다. 한 명씩 한 멘션은 mentions에 들어갑니다.Attachment.all_mention
all_mention.atreadonlynumber멘션 위치. mentions의 at과 달리 숫자 하나-
cmtlreadonlystring[]--
cslreadonlystring[]--
ctMeta?readonlystring--
expirereadonlynumber--
hlreadonlynumber[]--
imageUrlsreadonlystring[]사진 주소 목록-
klreadonlystring[]--
lastFeedId?readonlystring--
mentions?readonlyobject[]멘션 목록Attachment.mentions
mtlreadonlystring[]--
shout?readonlyboolean외치기 메세지 여부Attachment.shout
slreadonlynumber[]--
thumbnailHeightsreadonlynumber[]미리보기 높이 목록-
thumbnailUrlsreadonlystring[]미리보기 이미지 주소 목록-
thumbnailWidthsreadonlynumber[]미리보기 너비 목록-
urls?readonlystring[]메세지에 들어 있는 URL 목록Attachment.urls
wlreadonlynumber[]--

PhotoAttachment

사진 메세지의 첨부 데이터

확장

인덱싱 가능

[key: string]: unknown

속성

속성수정자타입설명상속받은 타입:
all_mention?readonlyobject@all로 전체를 멘션했을 때만 있습니다. 한 명씩 한 멘션은 mentions에 들어갑니다.Attachment.all_mention
all_mention.atreadonlynumber멘션 위치. mentions의 at과 달리 숫자 하나-
cmt?readonlystring--
csreadonlystring--
expirereadonlynumber--
hreadonlynumber원본 사진 높이-
kreadonlystring--
mentions?readonlyobject[]멘션 목록Attachment.mentions
mtreadonlystring--
sreadonlynumber--
shout?readonlyboolean외치기 메세지 여부Attachment.shout
thumbnailHeightreadonlynumber미리보기 높이-
thumbnailUrlreadonlystring미리보기 이미지 주소-
thumbnailWidthreadonlynumber미리보기 너비-
urlreadonlystring사진 주소-
urls?readonlystring[]메세지에 들어 있는 URL 목록Attachment.urls
wreadonlynumber원본 사진 너비-

ProfileAttachment

프로필 공유 메세지의 첨부 데이터

확장

인덱싱 가능

[key: string]: unknown

속성

속성수정자타입설명상속받은 타입:
accessPermitreadonlystring--
all_mention?readonlyobject@all로 전체를 멘션했을 때만 있습니다. 한 명씩 한 멘션은 mentions에 들어갑니다.Attachment.all_mention
all_mention.atreadonlynumber멘션 위치. mentions의 at과 달리 숫자 하나-
fullProfileImageUrlreadonlystring큰 프로필 이미지 주소-
mentions?readonlyobject[]멘션 목록Attachment.mentions
nickNamereadonlystring닉네임-
profileImageUrlreadonlystring프로필 이미지 주소-
shout?readonlyboolean외치기 메세지 여부Attachment.shout
statusMessage?readonlystring상태 메세지-
urls?readonlystring[]메세지에 들어 있는 URL 목록Attachment.urls
userIdreadonlystring유저 ID-

ReplyAttachment

답장 메세지의 첨부 데이터. src_로 시작하는 키는 답장 대상 메세지의 정보

확장

인덱싱 가능

[key: string]: unknown

속성

속성수정자타입설명상속받은 타입:
all_mention?readonlyobject@all로 전체를 멘션했을 때만 있습니다. 한 명씩 한 멘션은 mentions에 들어갑니다.Attachment.all_mention
all_mention.atreadonlynumber멘션 위치. mentions의 at과 달리 숫자 하나-
attach_content?readonlyEmoticonAttachment답장에 붙은 이모티콘 데이터-
attach_only?readonlyboolean--
attach_type?readonlynumber--
mentions?readonlyobject[]멘션 목록Attachment.mentions
shout?readonlyboolean외치기 메세지 여부Attachment.shout
src_linkIdreadonlystring--
src_logIdreadonlystring답장 대상 메세지의 로그 ID. getSource()가 이 값으로 메세지를 찾습니다.-
src_mentions?readonlystring[]답장 대상 메세지에서 멘션된 유저 ID 목록. 원본 멘션 객체의 user_id만 중복 없이 모았습니다.-
src_messagereadonlystring답장 대상 메세지 내용-
src_typereadonlynumber답장 대상 메세지 타입 번호-
src_userIdreadonlystring답장 대상 메세지를 보낸 유저 ID-
urls?readonlystring[]메세지에 들어 있는 URL 목록Attachment.urls

VideoAttachment

동영상 메세지의 첨부 데이터

확장

인덱싱 가능

[key: string]: unknown

속성

속성수정자타입설명상속받은 타입:
all_mention?readonlyobject@all로 전체를 멘션했을 때만 있습니다. 한 명씩 한 멘션은 mentions에 들어갑니다.Attachment.all_mention
all_mention.atreadonlynumber멘션 위치. mentions의 at과 달리 숫자 하나-
cmt?readonlystring--
csreadonlystring--
csh?readonlystring--
dreadonlynumber--
dh?readonlynumber--
expirereadonlynumber--
hreadonlynumber동영상 높이-
hh?readonlynumber--
mentions?readonlyobject[]멘션 목록Attachment.mentions
sreadonlynumber--
sh?readonlynumber--
shout?readonlyboolean외치기 메세지 여부Attachment.shout
tkreadonlystring--
tkh?readonlystring--
urlreadonlystring동영상 주소-
urlh?readonlystring--
urls?readonlystring[]메세지에 들어 있는 URL 목록Attachment.urls
wreadonlynumber동영상 너비-
wh?readonlynumber--

타입 별칭

MessageScopeName

type MessageScopeName = "unknown" | "channel" | "thread" | "all";

메세지가 속한 범위

On this page