Commits

Peter Bex  committed d7917a8

Allow recipients to be a list of strings, for convenience

  • Participants
  • Parent commits 3740328

Comments (0)

Files changed (1)

File smsmatrix.scm

                   username password group tts-fallback (error-on-failure #t))
   (let-auth 'send-sms username password
     (let* ((recipient-type (if group 'group 'phone))
+           (recipients (if (string? recipients)
+                           recipients
+                           (string-intersperse recipients ",")))
            (res (api-request 'send-sms sms-uri `((username . ,username)
                                                  (password . ,password)
                                                  (,recipient-type . ,recipients)