public static class SendableForwardMessage.SendableForwardMessageBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
SendableForwardMessage |
build()
Builds the SendableForwardMessage object
|
SendableForwardMessage.SendableForwardMessageBuilder |
chatID(String chatID)
*Required unless using
forwardedMessage(Message)*
Sets the ID of the chat that contains the message you want to forward |
SendableForwardMessage.SendableForwardMessageBuilder |
disableNotification(boolean disableNotification)
Sets whether or not to disable any notification this message might usually cause.
|
SendableForwardMessage.SendableForwardMessageBuilder |
forwardedMessage(Message forwardedMessage)
*Required unless using
messageID(Long) and chatID(String)*
Sets the Message object that relates to the message you want to forward |
SendableForwardMessage.SendableForwardMessageBuilder |
messageID(Long messageID)
*Required unless using
forwardedMessage(Message)*
Sets the ID of the message you want to forward |
public SendableForwardMessage.SendableForwardMessageBuilder forwardedMessage(Message forwardedMessage)
messageID(Long) and chatID(String)*
Sets the Message object that relates to the message you want to forwardforwardedMessage - The Message object relating to the message you want to forwardpublic SendableForwardMessage.SendableForwardMessageBuilder messageID(Long messageID)
forwardedMessage(Message)*
Sets the ID of the message you want to forwardmessageID - The ID of the message you want to forwardpublic SendableForwardMessage.SendableForwardMessageBuilder chatID(String chatID)
forwardedMessage(Message)*
Sets the ID of the chat that contains the message you want to forwardchatID - The ID of the chat containing the message you want to forwardpublic SendableForwardMessage.SendableForwardMessageBuilder disableNotification(boolean disableNotification)
disableNotification - True to disable notifications for this message, False otherwisepublic SendableForwardMessage build()
Copyright © 2017. All rights reserved.