npm install kakao-link
const KakaoLink = require('kakao-link');
const kakaoLink = new KakaoLink(JS_KEY, DOMAIN);
(async () => {
await kakaoLink.login(BOT_ID, BOT_PW);
await kakaoLink.send(
ROOM_NAME,
{
link_ver: '4.0',
template_id: TEMPLATE_ID,
template_args: {
TEMPLATE_ARGS
}
},
'custom'
);
})();