PHP Класс TelegramBot\Api\Types\Inline\QueryResult\AbstractInlineQueryResult

Наследование: extends TelegramBot\Api\BaseType
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$id string Unique identifier for this result, 1-64 bytes
$inputMessageContent TelegramBot\Api\Types\Inline\InputMessageContent Content of the message to be sent instead of the file
$replyMarkup TelegramBot\Api\Types\Inline\InlineKeyboardMarkup Optional. Inline keyboard attached to the message
$title string Title for the result
$type string Type of the result, must be one of: article, photo, gif, mpeg4_gif, video

Открытые методы

Метод Описание
__construct ( string $id, string $title, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $replyMarkup = null ) AbstractInlineQueryResult constructor.
getId ( ) : string
getInputMessageContent ( ) : TelegramBot\Api\Types\Inline\InputMessageContent
getReplyMarkup ( ) : TelegramBot\Api\Types\Inline\InlineKeyboardMarkup
getTitle ( ) : string
getType ( ) : string
setId ( string $id )
setInputMessageContent ( TelegramBot\Api\Types\Inline\InputMessageContent $inputMessageContent )
setReplyMarkup ( TelegramBot\Api\Types\Inline\InlineKeyboardMarkup $replyMarkup )
setTitle ( string $title )
setType ( string $type )

Описание методов

__construct() публичный Метод

AbstractInlineQueryResult constructor.
public __construct ( string $id, string $title, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $replyMarkup = null )
$id string
$title string
$inputMessageContent TelegramBot\Api\Types\Inline\InputMessageContent | null
$replyMarkup TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null

getId() публичный Метод

public getId ( ) : string
Результат string

getInputMessageContent() публичный Метод

public getInputMessageContent ( ) : TelegramBot\Api\Types\Inline\InputMessageContent
Результат TelegramBot\Api\Types\Inline\InputMessageContent

getReplyMarkup() публичный Метод

public getReplyMarkup ( ) : TelegramBot\Api\Types\Inline\InlineKeyboardMarkup
Результат TelegramBot\Api\Types\Inline\InlineKeyboardMarkup

getTitle() публичный Метод

public getTitle ( ) : string
Результат string

getType() публичный Метод

public getType ( ) : string
Результат string

setId() публичный Метод

public setId ( string $id )
$id string

setInputMessageContent() публичный Метод

public setInputMessageContent ( TelegramBot\Api\Types\Inline\InputMessageContent $inputMessageContent )
$inputMessageContent TelegramBot\Api\Types\Inline\InputMessageContent

setReplyMarkup() публичный Метод

public setReplyMarkup ( TelegramBot\Api\Types\Inline\InlineKeyboardMarkup $replyMarkup )
$replyMarkup TelegramBot\Api\Types\Inline\InlineKeyboardMarkup

setTitle() публичный Метод

public setTitle ( string $title )
$title string

setType() публичный Метод

public setType ( string $type )
$type string

Описание свойств

$id защищенное свойство

Unique identifier for this result, 1-64 bytes
protected string $id
Результат string

$inputMessageContent защищенное свойство

Content of the message to be sent instead of the file
protected InputMessageContent,TelegramBot\Api\Types\Inline $inputMessageContent
Результат TelegramBot\Api\Types\Inline\InputMessageContent

$replyMarkup защищенное свойство

Optional. Inline keyboard attached to the message
protected InlineKeyboardMarkup,TelegramBot\Api\Types\Inline $replyMarkup
Результат TelegramBot\Api\Types\Inline\InlineKeyboardMarkup

$title защищенное свойство

Title for the result
protected string $title
Результат string

$type защищенное свойство

Type of the result, must be one of: article, photo, gif, mpeg4_gif, video
protected string $type
Результат string