Class InlineQueryResultCachedDocument
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.inlinequery.result.cached.InlineQueryResultCachedDocument
-
- All Implemented Interfaces:
Serializable,BotApiObject,Validable,InlineQueryResult
public class InlineQueryResultCachedDocument extends Object implements InlineQueryResult
- Version:
- 1.0 Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultCachedDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
validate
public void validate() throws TelegramApiValidationExceptionDescription copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
-