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

Inheritance: extends AbstractInlineQueryResult
Exibir arquivo Open project: TelegramBot/Api

Protected Properties

Property 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

Public Methods

Method 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 method

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 method

public getDescription ( ) : string
return string

getThumbHeight() public method

public getThumbHeight ( ) : integer
return integer

getThumbUrl() public method

public getThumbUrl ( ) : string
return string

getThumbWidth() public method

public getThumbWidth ( ) : integer
return integer

getUrl() public method

public getUrl ( ) : string
return string

isHideUrl() public method

public isHideUrl ( ) : boolean
return boolean

setDescription() public method

public setDescription ( string $description )
$description string

setHideUrl() public method

public setHideUrl ( boolean $hideUrl )
$hideUrl boolean

setThumbHeight() public method

public setThumbHeight ( integer $thumbHeight )
$thumbHeight integer

setThumbUrl() public method

public setThumbUrl ( string $thumbUrl )
$thumbUrl string

setThumbWidth() public method

public setThumbWidth ( integer $thumbWidth )
$thumbWidth integer

setUrl() public method

public setUrl ( string $url )
$url string

Property Details

$description protected_oe property

Optional. Short description of the result
protected string $description
return string

$hideUrl protected_oe property

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

$map protected_oe static_oe property

protected static array $map
return array

$requiredParams protected_oe static_oe property

protected static array $requiredParams
return array

$thumbHeight protected_oe property

Optional. Thumbnail height
protected int $thumbHeight
return integer

$thumbUrl protected_oe property

Optional. Url of the thumbnail for the result
protected string $thumbUrl
return string

$thumbWidth protected_oe property

Optional. Thumbnail width
protected int $thumbWidth
return integer

$type protected_oe property

protected string $type
return string

$url protected_oe property

Optional. URL of the result
protected string $url
return string