public static class SendableVideoMessage.SendableVideoMessageBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
SendableVideoMessage |
build()
Builds the SendableVideoMessage object
|
SendableVideoMessage.SendableVideoMessageBuilder |
caption(String caption)
*Optional*
Sets the caption that you want to send with the Message
|
SendableVideoMessage.SendableVideoMessageBuilder |
disableNotification(boolean disableNotification)
*Optional*
Sets whether or not to disable any notification this message might usually cause.
|
SendableVideoMessage.SendableVideoMessageBuilder |
duration(int duration)
*Optional*
Sets the duration of the video file to be sent
|
SendableVideoMessage.SendableVideoMessageBuilder |
height(int height)
*Optional*
Sets the height of the video file to be sent
|
SendableVideoMessage.SendableVideoMessageBuilder |
replyMarkup(ReplyMarkup replyMarkup)
*Optional*
Sets the ReplyMarkup that you want to send with the message
|
SendableVideoMessage.SendableVideoMessageBuilder |
replyTo(long replyTo)
*Optional*
Sets the ID of the message you want to reply to
|
SendableVideoMessage.SendableVideoMessageBuilder |
replyTo(Message replyTo)
*Optional*
Sets the Message object that you want to reply to
|
SendableVideoMessage.SendableVideoMessageBuilder |
video(InputFile video)
*Required*
Sets the video InputFile to be sent
|
SendableVideoMessage.SendableVideoMessageBuilder |
width(int width)
*Optional*
Sets the width of the video file to be sent
|
public SendableVideoMessage.SendableVideoMessageBuilder video(InputFile video)
video - The video InputFilepublic SendableVideoMessage.SendableVideoMessageBuilder duration(int duration)
duration - The duration of the video filepublic SendableVideoMessage.SendableVideoMessageBuilder width(int width)
width - The width of the video filepublic SendableVideoMessage.SendableVideoMessageBuilder height(int height)
height - The height of the video filepublic SendableVideoMessage.SendableVideoMessageBuilder caption(String caption)
caption - The caption you want to send with the Messagepublic SendableVideoMessage.SendableVideoMessageBuilder replyTo(Message replyTo)
replyTo - The Message object you want to reply topublic SendableVideoMessage.SendableVideoMessageBuilder replyTo(long replyTo)
replyTo - The ID of the message you want to reply topublic SendableVideoMessage.SendableVideoMessageBuilder replyMarkup(ReplyMarkup replyMarkup)
replyMarkup - The ReplyMarkup you want to send with the messagepublic SendableVideoMessage.SendableVideoMessageBuilder disableNotification(boolean disableNotification)
disableNotification - True to disable notifications for this message, False otherwisepublic SendableVideoMessage build()
Copyright © 2017. All rights reserved.