Method: Twilio::REST::Conversations::V1::ServiceContext::ConversationContext::MessageContext#delivery_receipts
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb
#delivery_receipts(sid = :unset) ⇒ DeliveryReceiptList, DeliveryReceiptContext
Access the delivery_receipts
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb', line 295 def delivery_receipts(sid=:unset) raise ArgumentError, 'sid cannot be nil' if sid.nil? if sid != :unset return DeliveryReceiptContext.new(@version, @solution[:chat_service_sid], @solution[:conversation_sid], @solution[:sid],sid ) end unless @delivery_receipts @delivery_receipts = DeliveryReceiptList.new( @version, chat_service_sid: @solution[:chat_service_sid], conversation_sid: @solution[:conversation_sid], message_sid: @solution[:sid], ) end @delivery_receipts end |