# `Chime.Channels.Twilio`
[🔗](https://github.com/hattoriai/chime/blob/v0.1.0-dev/lib/chime/channels/twilio.ex#L1)

SMS by Twilio: a text to the person's phone.

    channels: [
      sms:
        {Chime.Channels.Twilio,
         account_sid: System.fetch_env!("TWILIO_ACCOUNT_SID"),
         auth_token: System.fetch_env!("TWILIO_AUTH_TOKEN"),
         from: "+15551234567"}
    ]

The phone is the recipient's data (`data.phone`, or `to: {:data,
:mobile}`), in E.164 (`"+351912345678"`). `:messaging_service_sid` sends
from a Messaging Service instead of `:from`. It says the notifier's
function of the channel's name (`sms/3`, a text) when it has one, else
the feed's title and the link that reads the notification. A number
Twilio refuses for good (not a mobile, or the person replied STOP) is
skipped, with its reason. Options: `:account_sid`, `:auth_token`,
`:from`, `:messaging_service_sid`, `:to`, `:req_options`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
