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

Inheritance: extends AbstractInlineQueryResult
Afficher le fichier Open project: TelegramBot/Api

Protected Properties

Свойство Type Description
$description string Optional. Short description of the result
$hideUrl boolean Optional. Pass True, if you don't want the URL to be shown in the message
$map array
$requiredParams array
$thumbHeight integer Optional. Thumbnail height
$thumbUrl string Optional. Url of the thumbnail for the result
$thumbWidth integer Optional. Thumbnail width
$type string
$url string Optional. URL of the result

Méthodes publiques

Méthode Description
__construct ( string $id, string $title, string | null $description = null, string | null $thumbUrl = null, integer | null $thumbWidth = null, integer | null $thumbHeight = null, TelegramBot\Api\Types\Inline\InputMessageContent $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null ) InlineQueryResultArticle constructor.
getDescription ( ) : string
getThumbHeight ( ) : integer
getThumbUrl ( ) : string
getThumbWidth ( ) : integer
getUrl ( ) : string
isHideUrl ( ) : boolean
setDescription ( string $description )
setHideUrl ( boolean $hideUrl )
setThumbHeight ( integer $thumbHeight )
setThumbUrl ( string $thumbUrl )
setThumbWidth ( integer $thumbWidth )
setUrl ( string $url )

Method Details

__construct() public méthode

InlineQueryResultArticle constructor.
public __construct ( string $id, string $title, string | null $description = null, string | null $thumbUrl = null, integer | null $thumbWidth = null, integer | null $thumbHeight = null, TelegramBot\Api\Types\Inline\InputMessageContent $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null )
$id string
$title string
$description string | null
$thumbUrl string | null
$thumbWidth integer | null
$thumbHeight integer | null
$inputMessageContent TelegramBot\Api\Types\Inline\InputMessageContent
$inlineKeyboardMarkup TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null

getDescription() public méthode

public getDescription ( ) : string
Résultat string

getThumbHeight() public méthode

public getThumbHeight ( ) : integer
Résultat integer

getThumbUrl() public méthode

public getThumbUrl ( ) : string
Résultat string

getThumbWidth() public méthode

public getThumbWidth ( ) : integer
Résultat integer

getUrl() public méthode

public getUrl ( ) : string
Résultat string

isHideUrl() public méthode

public isHideUrl ( ) : boolean
Résultat boolean

setDescription() public méthode

public setDescription ( string $description )
$description string

setHideUrl() public méthode

public setHideUrl ( boolean $hideUrl )
$hideUrl boolean

setThumbHeight() public méthode

public setThumbHeight ( integer $thumbHeight )
$thumbHeight integer

setThumbUrl() public méthode

public setThumbUrl ( string $thumbUrl )
$thumbUrl string

setThumbWidth() public méthode

public setThumbWidth ( integer $thumbWidth )
$thumbWidth integer

setUrl() public méthode

public setUrl ( string $url )
$url string

Property Details

$description protected_oe property

Optional. Short description of the result
protected string $description
Résultat string

$hideUrl protected_oe property

Optional. Pass True, if you don't want the URL to be shown in the message
protected bool $hideUrl
Résultat boolean

$map protected_oe static_oe property

protected static array $map
Résultat array

$requiredParams protected_oe static_oe property

protected static array $requiredParams
Résultat array

$thumbHeight protected_oe property

Optional. Thumbnail height
protected int $thumbHeight
Résultat integer

$thumbUrl protected_oe property

Optional. Url of the thumbnail for the result
protected string $thumbUrl
Résultat string

$thumbWidth protected_oe property

Optional. Thumbnail width
protected int $thumbWidth
Résultat integer

$type protected_oe property

protected string $type
Résultat string

$url protected_oe property

Optional. URL of the result
protected string $url
Résultat string