def create_message(group_id, text, attachments = [])
      data = {
        :message => {
          :source_guid => SecureRandom.uuid,
          :text => text
        }
      }
      data[:message][:attachments] = attachments if attachments.any?
      post("/groups/#{group_id}/messages", data).message
    end
def create_message(group_id, text, attachments = [])
      data = {
        :message => {
          :source_guid => SecureRandom.uuid,
          :text => text
        }
      }
      data[:message][:attachments] = attachments if attachments.any?
      post("/groups/#{group_id}/messages", data).message
    end
Create a message for a group

 @return [Hashie::Mash] Hash representing the message
 @see https://dev.groupme.com/docs/v3#messages_create
 @param group_id [String, Integer] Id of the group
 @param text [String] Text of the message
 @param attachments [Array<Hash>] Array of attachments