bin/sms in clickatell-0.6.0 vs bin/sms in clickatell-0.7.0
- old
+ new
@@ -28,14 +28,14 @@
puts "Getting status of message ##{options.message_id}."
status = api.message_status(options.message_id)
puts "Status: #{Clickatell::API::MessageStatus[status]} (##{status})."
exit 0
else
- puts "Sending '#{options.message}' to #{options.recipient}..."
+ puts "Sending '#{options.message}' to #{[options.recipient].flatten.join(", ")}..."
additional_opts = {}
additional_opts[:from] = options.from if options.from
msg_id = api.send_message(options.recipient, options.message, additional_opts)
- puts "Message sent successfully (message id: #{msg_id})."
+ puts "Message sent successfully (message id: #{[msg_id].flatten.join(", ")})."
exit 0
end
rescue Clickatell::API::Error => e
case e.code
\ No newline at end of file