Class InlineQueryResultCachedDocument
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResultCachedDocument
-
public class InlineQueryResultCachedDocument extends InlineQueryResult
Represents a link to a file. 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. Currently, only .PDF and .ZIP files can be sent using this method.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultCachedDocument()
InlineQueryResultCachedDocument(String documentFileId, String title)
InlineQueryResultCachedDocument(String documentFileId, String title, String caption, String description, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
Constructor Detail
-
InlineQueryResultCachedDocument
public InlineQueryResultCachedDocument()
-
InlineQueryResultCachedDocument
public InlineQueryResultCachedDocument(String documentFileId, String title)
- Parameters:
documentFileId
- A valid file identifier for the filetitle
- Title for the result
-
InlineQueryResultCachedDocument
public InlineQueryResultCachedDocument(String documentFileId, String title, String caption, String description, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
- Parameters:
documentFileId
- A valid file identifier for the filetitle
- Title for the resultcaption
- Optional. Caption of the document to be sent, 0-200 charactersdescription
- Optional. Short description of the resultreplyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message
-
-