Class InlineQueryResultVoice
java.lang.Object
org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResultVoice
- All Implemented Interfaces:
Serializable
,BotApiObject
,Validable
,InlineQueryResult
- Version:
- 1.0 Represents a link to a voice recording in an .ogg container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.
- Author:
- Ruben Bermudez
- See Also:
-
Field Summary
Fields inherited from interface org.telegram.telegrambots.meta.api.objects.inlinequery.result.InlineQueryResult
VALIDTHUMBTYPES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Validates that mandatory fields are filled and optional objects
-
Constructor Details
-
InlineQueryResultVoice
public InlineQueryResultVoice()
-
-
Method Details
-
validate
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Specified by:
validate
in interfaceValidable
- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-