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/62df46b0ba6578f12bed88bcfc95d6af to your computer and use it in GitHub Desktop.
Save KimGenius/62df46b0ba6578f12bed88bcfc95d6af to your computer and use it in GitHub Desktop.
send({
text: 'Hello World!',
to: '01000000000',
from: '01000000000'
})
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