Class InlineQueryResultArticle
java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryResultArticle
- All Implemented Interfaces:
InlineQueryResult
,Serializable
Represents a link to an article or web page.
- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultArticle
(String id, String title, InputTextMessageContent input_message_content) Required -
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) Optionalboolean
int
hashCode()
replyMarkup
(InlineKeyboardMarkup keyboard) OptionalthumbnailHeight
(int thumbnailHeight) OptionalthumbnailUrl
(String thumbnailUrl) OptionalthumbnailWidth
(int thumbnailWidth) OptionalOptional
-
Constructor Details
-
InlineQueryResultArticle
public InlineQueryResultArticle(String id, String title, InputTextMessageContent input_message_content) Required- Parameters:
id
- Unique identifier for this result, 1-64 Bytestitle
- Title of the resultinput_message_content
- Content of the message to be sent
-
-
Method Details
-
replyMarkup
Optional- Parameters:
keyboard
-Inline keyboard
attached to the message- Returns:
InlineQueryResultArticle
-
url
Optional- Parameters:
url
- URL of the result. Pass an empty string to hide- Returns:
InlineQueryResultArticle
-
description
Optional- Parameters:
description
- Short description of the result- Returns:
InlineQueryResultArticle
-
thumbnailUrl
Optional- Parameters:
thumbnailUrl
- Url of the thumbnail for the result- Returns:
InlineQueryResultArticle
-
thumbnailWidth
Optional- Parameters:
thumbnailWidth
- Thumbnail width- Returns:
InlineQueryResultArticle
-
thumbnailHeight
Optional- Parameters:
thumbnailHeight
- Thumbnail heigh- Returns:
InlineQueryResultArticle
-
equals
-
hashCode
-