Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F632885
InputRichBlockPreformatted.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
919 B
Referenced Files
None
Subscribers
None
InputRichBlockPreformatted.php
View Options
<?php
namespace
Longman
\
TelegramBot
\
Entities
\
InputRichBlock
;
use
Longman
\
TelegramBot
\
Entities
\
Entity
;
use
Longman
\
TelegramBot
\
Entities
\
RichText
\
Factory
as
RichTextFactory
;
/**
* Class InputRichBlockPreformatted
*
* A preformatted block.
*
* @link https://core.telegram.org/bots/api#inputrichblockpreformatted
*
* @method RichText getText() Text of the block
* @method string getLanguage() Optional. The programming language of the text
*/
class
InputRichBlockPreformatted
extends
Entity
implements
InputRichBlock
{
/**
* InputRichBlockPreformatted constructor
*
* @param array $data
*/
public
function
__construct
(
array
$data
=
[
]
)
{
$data
[
'type'
]
=
'pre'
;
parent
::
__construct
(
$data
)
;
}
/**
* {@inheritdoc}
*/
protected
function
subEntities
(
)
:
array
{
return
[
'text'
=>
RichTextFactory
::
class
,
]
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 15, 3:32 PM (7 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152444
Default Alt Text
InputRichBlockPreformatted.php (919 B)
Attached To
Mode
R123 php-telegram-bot
Attached
Detach File
Event Timeline