import { Twilio } from "twilio";
type Twilio = {
accountSid: string;
token: string;
};
export async function main(
twilio: Twilio,
body: string,
to: string,
from: string
): Promise<void> {
const client = new Twilio(twilio.accountSid, twilio.token);
const message = await client.messages.create({
body: body,
to: to,
from: from,
});
console.log(message.sid);
}
Submitted by hugo697 468 days ago