text.rb 365 B

12345678910
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Whatsapp::Outgoing::Message::Text < Whatsapp::Outgoing::Message
  3. def deliver(body:)
  4. response = messages_api.send_text(sender_id: phone_number_id.to_i, recipient_number: recipient_number.to_i, message: body)
  5. handle_error(response:)
  6. handle_response(response:)
  7. end
  8. end