Class ReplyMessage

java.lang.Object
com.linecorp.bot.model.ReplyMessage

public final class ReplyMessage extends Object
Respond to events from users, groups, and rooms.

Webhooks are used to notify you when an event occurs. For events that you can respond to, a replyToken is issued for replying to messages.

Because the replyToken becomes invalid after a certain period of time, responses should be sent as soon as a message is received. Reply tokens can only be used once.

  • Constructor Details

    • ReplyMessage

      public ReplyMessage(String replyToken, Message message)
    • ReplyMessage

      public ReplyMessage(String replyToken, List<Message> messages)
    • ReplyMessage

      public ReplyMessage(String replyToken, Message message, boolean notificationDisabled)
    • ReplyMessage

      public ReplyMessage(String replyToken, List<Message> messages, boolean notificationDisabled)
  • Method Details

    • getReplyToken

      public String getReplyToken()
      replyToken received via webhook.
    • getMessages

      public List<Message> getMessages()
      List of messages.

      Max: 5

    • isNotificationDisabled

      public boolean isNotificationDisabled()
      Whether sends a push notification to message receivers or not. If true, the user doesn't receive a push notification when the message is sent. And if false, the user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object