Class SendVideoNote
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<Message>
-
- org.telegram.telegrambots.meta.api.methods.send.SendVideoNote
-
- All Implemented Interfaces:
Validable
public class SendVideoNote extends PartialBotApiMethod<Message>
- Version:
- 1.0 As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent Message is returned.
- Author:
- Ruben Bermudez
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALLOWSENDINGWITHOUTREPLY_FIELD
static String
CHATID_FIELD
static String
DISABLENOTIFICATION_FIELD
static String
DURATION_FIELD
static String
LENGTH_FIELD
static String
PATH
static String
PROTECTCONTENT_FIELD
static String
REPLYMARKUP_FIELD
static String
REPLYTOMESSAGEID_FIELD
static String
THUMB_FIELD
static String
VIDEONOTE_FIELD
-
Fields inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
OBJECT_MAPPER
-
-
Constructor Summary
Constructors Constructor Description SendVideoNote()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Message
deserializeResponse(String answer)
Deserialize a json answer to the response type to a methodvoid
disableNotification()
void
enableNotification()
void
validate()
Validates that mandatory fields are filled and optional objects
-
-
-
Field Detail
-
PATH
public static final String PATH
- See Also:
- Constant Field Values
-
CHATID_FIELD
public static final String CHATID_FIELD
- See Also:
- Constant Field Values
-
VIDEONOTE_FIELD
public static final String VIDEONOTE_FIELD
- See Also:
- Constant Field Values
-
DURATION_FIELD
public static final String DURATION_FIELD
- See Also:
- Constant Field Values
-
LENGTH_FIELD
public static final String LENGTH_FIELD
- See Also:
- Constant Field Values
-
DISABLENOTIFICATION_FIELD
public static final String DISABLENOTIFICATION_FIELD
- See Also:
- Constant Field Values
-
REPLYTOMESSAGEID_FIELD
public static final String REPLYTOMESSAGEID_FIELD
- See Also:
- Constant Field Values
-
REPLYMARKUP_FIELD
public static final String REPLYMARKUP_FIELD
- See Also:
- Constant Field Values
-
THUMB_FIELD
public static final String THUMB_FIELD
- See Also:
- Constant Field Values
-
ALLOWSENDINGWITHOUTREPLY_FIELD
public static final String ALLOWSENDINGWITHOUTREPLY_FIELD
- See Also:
- Constant Field Values
-
PROTECTCONTENT_FIELD
public static final String PROTECTCONTENT_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
enableNotification
public void enableNotification()
-
disableNotification
public void disableNotification()
-
deserializeResponse
public Message deserializeResponse(String answer) throws TelegramApiRequestException
Description copied from class:PartialBotApiMethod
Deserialize a json answer to the response type to a method- Specified by:
deserializeResponse
in classPartialBotApiMethod<Message>
- Parameters:
answer
- Json answer received- Returns:
- Answer for the method
- Throws:
TelegramApiRequestException
-
validate
public void validate() throws TelegramApiValidationException
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-
-