sms.messages is being deprecated from twilio

Albert Sun лет %!s(int64=9): %!d(string=назад)
Родитель
Сommit
97d7c799bb
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/models/agents/twilio_agent.rb

+ 1 - 1
app/models/agents/twilio_agent.rb

@@ -66,7 +66,7 @@ module Agents
66 66
     end
67 67
 
68 68
     def send_message(message)
69
-      client.account.sms.messages.create :from => interpolated['sender_cell'],
69
+      client.account.messages.create :from => interpolated['sender_cell'],
70 70
                                          :to => interpolated['receiver_cell'],
71 71
                                          :body => message
72 72
     end