/** * Send a message and wait for the answer. * @param me The message event. * @return The result event. */ public IMessageEvent sendMessageAndWait(IMessageEvent me) { return sendMessageAndWait(me, -1); }
/** * Send a message and wait for the answer. * Adds a reply_with entry if not present, for tracking the conversation. * @param me The message event. * @param timeout The timeout. * @return The result event. */ public IMessageEvent sendMessageAndWait(IMessageEvent me, long timeout) { return sendMessageAndWait(me, timeout, null); }