Description

The webhook instance to send a message to a connector url

Example

try {
const url = "https://[account-name].webhook.office.com"
const data = new SimpleTextCard("Hello world!");
const webhook = new Webhook(url, data);
const response = await webhook.sendMessage();
console.log(response);
} catch (error) {
console.log(error)
}

Hierarchy

  • Webhook

Constructors

Properties

Methods

Constructors

Properties

_payload: WebhookRequest

Methods

Generated using TypeDoc