feat: add Telnyx sms support

This commit is contained in:
Taranto 2023-07-30 11:43:33 +01:00
parent 7307466df4
commit e8a3d2ed11
8 changed files with 409 additions and 39 deletions

View file

@ -25,7 +25,7 @@ function getSms (event, phone, content) {
}
function getPlugin (settings) {
const pluginCode = argv.mockSms ? 'mock-sms' : 'twilio'
const pluginCode = argv.mockSms ? 'mock-sms' : argv.telnyxSms ? 'telnyx' : 'twilio'
const plugin = ph.load(ph.SMS, pluginCode)
const account = settings.accounts[pluginCode]