Page MenuHomePhabricator (Chris)

InputRichBlockPreformatted.php
No OneTemporary

Authored By
Unknown
Size
919 B
Referenced Files
None
Subscribers
None

InputRichBlockPreformatted.php

<?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

Mime Type
text/x-php
Expires
Sun, Nov 15, 3:32 PM (7 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152444
Default Alt Text
InputRichBlockPreformatted.php (919 B)

Event Timeline