Class InlineQueryResultDocument
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResultDocument
-
public class InlineQueryResultDocument 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 InlineQueryResultDocument()
InlineQueryResultDocument(String documentUrl, String title, String mimeType)
InlineQueryResultDocument(String documentUrl, String title, String mimeType, String caption, String description, String thumbUrl, Integer thumbWidth, Integer thumbHeight, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
Constructor Detail
-
InlineQueryResultDocument
public InlineQueryResultDocument()
-
InlineQueryResultDocument
public InlineQueryResultDocument(String documentUrl, String title, String mimeType)
- Parameters:
documentUrl
- A valid URL for the filemimeType
- Mime type of the content of the file, either “application/pdf” or “application/zip”title
- Title for the result
-
InlineQueryResultDocument
public InlineQueryResultDocument(String documentUrl, String title, String mimeType, String caption, String description, String thumbUrl, Integer thumbWidth, Integer thumbHeight, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
- Parameters:
documentUrl
- A valid URL for the filemimeType
- Mime type of the content of the file, either “application/pdf” or “application/zip”title
- Title for the resultcaption
- Optional. Caption of the document to be sent, 0-200 charactersdescription
- Optional. Short description of the resultthumbUrl
- Optional. URL of the thumbnail (jpeg only) for the filethumbWidth
- Optional. Thumbnail widththumbHeight
- Optional. Thumbnail heightreplyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message
-
-