Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 576 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 576 Bytes

Feed 생성

const createRichFeedTemplate = () => {
    const feed = new kakao.RichFeedAttachment();
    feed.readAttachment({
        'text': '안녕하세요',
    });
    return new kakao.AttachmentTemplate(feed, '{"feedType":10}');
};

사진 전송

pic = fs.readFileSync('picture.jpg');
picAtt = await kakao.PhotoAttachment.fromBuffer(pic, 'picture.jpg', 698, 419);
att = new kakao.AttachmentTemplate(picAtt);

멘션

const mention = new kakao.ChatMention(chat.sender);
chat.channel.sendText(mention);