Skip to content

raravel/kakao-bot-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published