public class SendVideoNote extends PartialBotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
CHATID_FIELD |
static String |
DISABLENOTIFICATION_FIELD |
static String |
DURATION_FIELD |
static String |
LENGTH_FIELD |
static String |
PATH |
static String |
REPLYMARKUP_FIELD |
static String |
REPLYTOMESSAGEID_FIELD |
static String |
VIDEONOTE_FIELD |
OBJECT_MAPPER| Constructor and Description |
|---|
SendVideoNote() |
SendVideoNote(Integer chatId,
File newVideoNoteFile)
Creates a new video note with a video already present in telegram servers
|
SendVideoNote(Integer chatId,
String videoNoteName,
InputStream newVideoNoteStream)
Creates a new video note with a video already present in telegram servers
|
SendVideoNote(Long chatId,
String videoNote)
Creates a new video note with a video already present in telegram servers
|
SendVideoNote(String chatId,
File newVideoNoteFile)
Creates a new video note with a new video note
|
SendVideoNote(String chatId,
String videoNote)
Creates a new video note with a video already present in telegram servers
|
SendVideoNote(String chatId,
String videoNoteName,
InputStream newVideoNoteStream)
Creates a new video note with a new video note
|
public static final String PATH
public static final String CHATID_FIELD
public static final String VIDEONOTE_FIELD
public static final String DURATION_FIELD
public static final String LENGTH_FIELD
public static final String DISABLENOTIFICATION_FIELD
public static final String REPLYTOMESSAGEID_FIELD
public static final String REPLYMARKUP_FIELD
public SendVideoNote()
public SendVideoNote(String chatId, String videoNote)
chatId - Chat Id to send the video notevideoNote - Video note file_id to sendpublic SendVideoNote(Long chatId, String videoNote)
chatId - Chat Id to send the video notevideoNote - Video note file_id to sendpublic SendVideoNote(String chatId, File newVideoNoteFile)
chatId - Chat Id to send the video notenewVideoNoteFile - Video note file to uploadpublic SendVideoNote(Integer chatId, File newVideoNoteFile)
chatId - Chat Id to send the video notenewVideoNoteFile - Video note file to uploadpublic SendVideoNote(String chatId, String videoNoteName, InputStream newVideoNoteStream)
chatId - Chat Id to send the video notevideoNoteName - Name of the video note filenewVideoNoteStream - Video note file to uploadpublic SendVideoNote(Integer chatId, String videoNoteName, InputStream newVideoNoteStream)
chatId - Chat Id to send the video notevideoNoteName - Name of the video note filenewVideoNoteStream - Video note file to uploadpublic String getChatId()
public SendVideoNote setChatId(String chatId)
public String getVideoNote()
public SendVideoNote setVideoNote(String videoNote)
public Integer getLength()
public SendVideoNote setLength(Integer length)
public SendVideoNote setChatId(Long chatId)
public Integer getDuration()
public SendVideoNote setDuration(Integer duration)
public Integer getReplyToMessageId()
public SendVideoNote setReplyToMessageId(Integer replyToMessageId)
public ReplyKeyboard getReplyMarkup()
public SendVideoNote setReplyMarkup(ReplyKeyboard replyMarkup)
public Boolean getDisableNotification()
public SendVideoNote enableNotification()
public SendVideoNote disableNotification()
public boolean isNewVideoNote()
public SendVideoNote setNewVideoNote(File file)
public SendVideoNote setNewVideo(String videoName, InputStream inputStream)
public String getVideoNoteName()
public File getNewVideoNoteFile()
public InputStream getNewVideoNoteStream()
public Message deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Message>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2017. All rights reserved.