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
Show file Open project: TelegramBot/Api

Protected Properties

Property 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

Public Methods

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

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

getMessageText() public method

public getMessageText ( ) : string
return string

getParseMode() public method

public getParseMode ( ) : string
return string

isDisableWebPagePreview() public method

setDisableWebPagePreview() public method

public setDisableWebPagePreview ( boolean $disableWebPagePreview )
$disableWebPagePreview boolean

setMessageText() public method

public setMessageText ( string $messageText )
$messageText string

setParseMode() public method

public setParseMode ( string $parseMode )
$parseMode string

Property Details

$disableWebPagePreview protected property

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

$map protected static property

protected static array $map
return array

$messageText protected property

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

$parseMode protected 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
return string

$requiredParams protected static property

protected static array $requiredParams
return array