Skip to content

Instantly share code, notes, and snippets.

@tigercosmos
Created May 21, 2018 13:16
Show Gist options
  • Save tigercosmos/353da9518ab46437437e1b0edb4c6180 to your computer and use it in GitHub Desktop.
Save tigercosmos/353da9518ab46437437e1b0edb4c6180 to your computer and use it in GitHub Desktop.
async function platformReplyImage(context, url) {
if (process.env.chatroomPlatform == 'messenger') {
await context.sendImage(url)
} else {
await context.replyImage(url);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment