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

Inheritance: extends TelegramBot\Api\BaseType
Afficher le fichier Open project: TelegramBot/Api Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 méthode

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 méthode

public getId ( ) : string
Résultat string

getInputMessageContent() public méthode

public getInputMessageContent ( ) : TelegramBot\Api\Types\Inline\InputMessageContent
Résultat TelegramBot\Api\Types\Inline\InputMessageContent

getReplyMarkup() public méthode

public getReplyMarkup ( ) : TelegramBot\Api\Types\Inline\InlineKeyboardMarkup
Résultat TelegramBot\Api\Types\Inline\InlineKeyboardMarkup

getTitle() public méthode

public getTitle ( ) : string
Résultat string

getType() public méthode

public getType ( ) : string
Résultat string

setId() public méthode

public setId ( string $id )
$id string

setInputMessageContent() public méthode

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

setReplyMarkup() public méthode

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

setTitle() public méthode

public setTitle ( string $title )
$title string

setType() public méthode

public setType ( string $type )
$type string

Property Details

$id protected_oe property

Unique identifier for this result, 1-64 bytes
protected string $id
Résultat string

$inputMessageContent protected_oe property

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

$replyMarkup protected_oe property

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

$title protected_oe property

Title for the result
protected string $title
Résultat string

$type protected_oe property

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