Class InlineQueryResultArticle
- java.lang.Object
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResult
-
- com.cadiducho.telegrambotapi.inline.InlineQueryResultArticle
-
public class InlineQueryResultArticle extends InlineQueryResult
Represents a link to an article or web page.
-
-
Field Summary
-
Fields inherited from class com.cadiducho.telegrambotapi.inline.InlineQueryResult
id, inputMessageContent, replyMarkup, type
-
-
Constructor Summary
Constructors Constructor Description InlineQueryResultArticle()
InlineQueryResultArticle(String title, String messageText)
InlineQueryResultArticle(String title, String messageText, ParseMode parseMode, Boolean disableWebPagePreview, String url, Boolean hideUrl, String description, String thumbUrl, Integer thumbWidth, Integer thumbHeight, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
-
-
-
Constructor Detail
-
InlineQueryResultArticle
public InlineQueryResultArticle()
-
InlineQueryResultArticle
public InlineQueryResultArticle(String title, String messageText)
- Parameters:
title
- Title of the resultmessageText
- Text of the message to be sent
-
InlineQueryResultArticle
public InlineQueryResultArticle(String title, String messageText, ParseMode parseMode, Boolean disableWebPagePreview, String url, Boolean hideUrl, String description, String thumbUrl, Integer thumbWidth, Integer thumbHeight, InlineKeyboardMarkup replyMarkup, InputMessageContent inputMessageContent)
- Parameters:
title
- Title of the resultmessageText
- Text of the message to be sentparseMode
- Optional. Send “Markdown”, if you want Telegram apps to show bold, italic and inline URLs in your bot's message.disableWebPagePreview
- Optional. Disables link previews for links in the sent messageurl
- Optional. URL of the resulthideUrl
- Optional. Pass True, if you don't want the URL to be shown in the messagedescription
- Optional. Short description of the resultthumbUrl
- Optional. Url of the thumbnail for the resultthumbWidth
- Optional. Thumbnail widththumbHeight
- Optional. Thumbnail heightreplyMarkup
- Optional. Inline keyboard attached to the messageinputMessageContent
- Optional. Content of the message to be sent
-
-