README.md in chatbase-0.1.4 vs README.md in chatbase-0.1.5

- old
+ new

@@ -48,9 +48,40 @@ => response.body {"message_id": "1048441442", "status": 200} ``` +### Send generic multiple messages at once API + +```ruby +chat_params = { + messages:[ + { + platform: "ruby", + message: "Hello Chatbase message1!", + version: "1.0", + type: "agent", + user_id: "agent-01", + time_stamp: DateTime.now.strftime('%Q'), + }, + { + platform: "ruby", + message: "Hello Chatbase message2!", + version: "1.0", + type: "agent", + user_id: "agent-01", + time_stamp: DateTime.now.strftime('%Q'), + } + ] +} + +response = Chatbase::Message.new.send_messages(chat_params) # messages not message + +=> response.body + +{"all_succeeded"=>true, "responses"=>[{"message_id"=>1048692001, "status"=>"success"}, {"message_id"=>1048692002, "status"=>"success"}], "status"=>200} +``` + ### Facebook Message API ```ruby fb_params = { sender: {id: '1520833104112'}, recipient: {id: '528195999812'},