PHP Class TelegramBot\Api\Types\Inline\InputMessageContent\Text

See also: https://core.telegram.org/bots/api#inputtextmessagecontent Represents the content of a text message to be sent as the result of an inline query.
Inheritance: extends TelegramBot\Api\Types\Inline\InputMessageContent, implements TelegramBot\Api\TypeInterface
Afficher le fichier Open project: TelegramBot/Api

Protected Properties

Свойство Type Description
$disableWebPagePreview boolean Optional. Disables link previews for links in the sent message
$map array
$messageText string Text of the message to be sent, 1-4096 characters
$parseMode string Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
$requiredParams array

Méthodes publiques

Méthode Description
__construct ( string $messageText, string $parseMode = null, boolean $disableWebPagePreview = false ) Text constructor.
getMessageText ( ) : string
getParseMode ( ) : string
isDisableWebPagePreview ( ) : boolean
setDisableWebPagePreview ( boolean $disableWebPagePreview )
setMessageText ( string $messageText )
setParseMode ( string $parseMode )

Method Details

__construct() public méthode

Text constructor.
public __construct ( string $messageText, string $parseMode = null, boolean $disableWebPagePreview = false )
$messageText string
$parseMode string
$disableWebPagePreview boolean

getMessageText() public méthode

public getMessageText ( ) : string
Résultat string

getParseMode() public méthode

public getParseMode ( ) : string
Résultat string

isDisableWebPagePreview() public méthode

public isDisableWebPagePreview ( ) : boolean
Résultat boolean

setDisableWebPagePreview() public méthode

public setDisableWebPagePreview ( boolean $disableWebPagePreview )
$disableWebPagePreview boolean

setMessageText() public méthode

public setMessageText ( string $messageText )
$messageText string

setParseMode() public méthode

public setParseMode ( string $parseMode )
$parseMode string

Property Details

$disableWebPagePreview protected_oe property

Optional. Disables link previews for links in the sent message
protected bool $disableWebPagePreview
Résultat boolean

$map protected_oe static_oe property

protected static array $map
Résultat array

$messageText protected_oe property

Text of the message to be sent, 1-4096 characters
protected string $messageText
Résultat string

$parseMode protected_oe property

Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
protected string $parseMode
Résultat string

$requiredParams protected_oe static_oe property

protected static array $requiredParams
Résultat array