class InlineQueryResultCachedSticker implements InlineQueryResultInterface

Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.

Methods

__construct(string $type, string $id, string $sticker_file_id, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null)

No description

string
getType()

Type of the result, must be sticker.

string
getId()

Unique identifier for this result, 1-64 bytes.

string
getStickerFileId()

A valid file identifier of the sticker.

InlineKeyboardMarkup|null
getReplyMarkup()

Optional. Inline keyboard attached to the message.

InputMessageContentInterface|null
getInputMessageContent()

Optional. Content of the message to be sent instead of the sticker.

Details

at line 17
__construct(string $type, string $id, string $sticker_file_id, InlineKeyboardMarkup|null $reply_markup = null, InputMessageContentInterface|null $input_message_content = null)

No description

Parameters

string $type
string $id
string $sticker_file_id
InlineKeyboardMarkup|null $reply_markup
InputMessageContentInterface|null $input_message_content

at line 29
string getType()

Type of the result, must be sticker.

Return Value

string

at line 37
string getId()

Unique identifier for this result, 1-64 bytes.

Return Value

string

at line 45
string getStickerFileId()

A valid file identifier of the sticker.

Return Value

string

at line 53
InlineKeyboardMarkup|null getReplyMarkup()

Optional. Inline keyboard attached to the message.

Return Value

InlineKeyboardMarkup|null

at line 61
InputMessageContentInterface|null getInputMessageContent()

Optional. Content of the message to be sent instead of the sticker.

Return Value

InputMessageContentInterface|null