Skip to content

Instantly share code, notes, and snippets.

@KimGenius
Last active May 28, 2019 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KimGenius/d89c97a4339e35ca87c9ef55013324f6 to your computer and use it in GitHub Desktop.
Save KimGenius/d89c97a4339e35ca87c9ef55013324f6 to your computer and use it in GitHub Desktop.
send({
text: 'Hello World!',
to: '01000000000',
from: '01000000000'
}, {
/* 이 부분을 추가해주세요! */
agent: { appId: 'vTL0qHdlXXXp' }
})
async function send (message, agent = {}) {
try {
console.log(await Group.sendSimpleMessage(message, agent))
} catch (e) {
console.log(e)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment