class InlineQueryResultArticle implements InlineQueryResultInterface

Represents a link to an article or web page.

Methods

__construct(string $type, string $id, string $title, InputMessageContentInterface $input_message_content, InlineKeyboardMarkup|null $reply_markup = null, string|null $url = null, bool|null $hide_url = null, string|null $description = null, string|null $thumb_url = null, int|null $thumb_width = null, int|null $thumb_height = null)

No description

string
getType()

Type of the result, must be article.

string
getId()

Unique identifier for this result, 1-64 Bytes.

string
getTitle()

Title of the result.

getInputMessageContent()

Content of the message to be sent.

InlineKeyboardMarkup|null
getReplyMarkup()

Optional. Inline keyboard attached to the message.

string|null
getUrl()

Optional. URL of the result.

bool|null
getHideUrl()

Optional. Pass True if you don't want the URL to be shown in the message.

string|null
getDescription()

Optional. Short description of the result.

string|null
getThumbUrl()

Optional. Url of the thumbnail for the result.

int|null
getThumbWidth()

Optional. Thumbnail width.

int|null
getThumbHeight()

Optional. Thumbnail height.

Details

at line 23
__construct(string $type, string $id, string $title, InputMessageContentInterface $input_message_content, InlineKeyboardMarkup|null $reply_markup = null, string|null $url = null, bool|null $hide_url = null, string|null $description = null, string|null $thumb_url = null, int|null $thumb_width = null, int|null $thumb_height = null)

No description

Parameters

string $type
string $id
string $title
InputMessageContentInterface $input_message_content
InlineKeyboardMarkup|null $reply_markup
string|null $url
bool|null $hide_url
string|null $description
string|null $thumb_url
int|null $thumb_width
int|null $thumb_height

at line 41
string getType()

Type of the result, must be article.

Return Value

string

at line 49
string getId()

Unique identifier for this result, 1-64 Bytes.

Return Value

string

at line 57
string getTitle()

Title of the result.

Return Value

string

at line 65
InputMessageContentInterface getInputMessageContent()

Content of the message to be sent.

at line 73
InlineKeyboardMarkup|null getReplyMarkup()

Optional. Inline keyboard attached to the message.

Return Value

InlineKeyboardMarkup|null

at line 81
string|null getUrl()

Optional. URL of the result.

Return Value

string|null

at line 89
bool|null getHideUrl()

Optional. Pass True if you don't want the URL to be shown in the message.

Return Value

bool|null

at line 97
string|null getDescription()

Optional. Short description of the result.

Return Value

string|null

at line 105
string|null getThumbUrl()

Optional. Url of the thumbnail for the result.

Return Value

string|null

at line 113
int|null getThumbWidth()

Optional. Thumbnail width.

Return Value

int|null

at line 121
int|null getThumbHeight()

Optional. Thumbnail height.

Return Value

int|null