Transports
Taqnyat SMS
Send SMS through the Taqnyat API.
Send SMS through the Taqnyat API.
The one rule
Create this transport under the matching sently channel sender.
Configuration
| Option | Type | Default or requirement |
|---|---|---|
bearerToken | string | required |
sender | string | required |
import { createSmsSender } from "sently/sms";
import { TaqnyatSmsTransport } from "sently/transports/taqnyat-sms";
const sender = createSmsSender({ transport: new TaqnyatSmsTransport({ bearerToken: "...", sender: "MyBrand" }) });await sender.send({ to: "+15551234567", body: "Hello" });No. Use the sently sender; provider-specific extras stay on the transport instance.