PHP Class TelegramBot\Api\Types\Inline\QueryResult\AbstractInlineQueryResult

Inheritance: extends TelegramBot\Api\BaseType
ファイルを表示 Open project: TelegramBot/Api Class Usage Examples

Protected Properties

Property Type Description
$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

Public Methods

Method Description
__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 )

Method Details

__construct() public method

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 method

public getId ( ) : string
return string

getInputMessageContent() public method

public getInputMessageContent ( ) : TelegramBot\Api\Types\Inline\InputMessageContent
return TelegramBot\Api\Types\Inline\InputMessageContent

getReplyMarkup() public method

public getReplyMarkup ( ) : TelegramBot\Api\Types\Inline\InlineKeyboardMarkup
return TelegramBot\Api\Types\Inline\InlineKeyboardMarkup

getTitle() public method

public getTitle ( ) : string
return string

getType() public method

public getType ( ) : string
return string

setId() public method

public setId ( string $id )
$id string

setInputMessageContent() public method

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

setReplyMarkup() public method

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

setTitle() public method

public setTitle ( string $title )
$title string

setType() public method

public setType ( string $type )
$type string

Property Details

$id protected_oe property

Unique identifier for this result, 1-64 bytes
protected string $id
return string

$inputMessageContent protected_oe property

Content of the message to be sent instead of the file
protected InputMessageContent,TelegramBot\Api\Types\Inline $inputMessageContent
return TelegramBot\Api\Types\Inline\InputMessageContent

$replyMarkup protected_oe property

Optional. Inline keyboard attached to the message
protected InlineKeyboardMarkup,TelegramBot\Api\Types\Inline $replyMarkup
return TelegramBot\Api\Types\Inline\InlineKeyboardMarkup

$title protected_oe property

Title for the result
protected string $title
return string

$type protected_oe property

Type of the result, must be one of: article, photo, gif, mpeg4_gif, video
protected string $type
return string