Send Message

Version: 2.0.1
communication/send-message
superface

Send message via IM such as Messanger, Slack or MS Teams.

Send Message

Sends message to one destination

Destination
Text
Destination
Message ID

1. Install

npx @superfaceai/cli install communication/send-message

2. Use in your code

const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the installed profile
  const profile = await sdk.getProfile('communication/send-message');

  // Use the profile
  const result = await profile
    .getUseCase('SendMessage')
    .perform({
      destination: 'C1H9RESGL',
      text: 'Our app has 1,000,000 subscribers!'
    });

  return result.unwrap();
}

run();

3. Add providers