Page MenuHomePhabricator (Chris)

InputRichMessage.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

InputRichMessage.php

<?php
namespace Longman\TelegramBot\Entities;
use Longman\TelegramBot\Entities\InputRichBlock\Factory as InputRichBlockFactory;
/**
* Class InputRichMessage
*
* Describes a rich message to be sent. Exactly one of the fields html, markdown, or blocks must be used.
*
* @link https://core.telegram.org/bots/api#inputrichmessage
*
* @method InputRichBlock[] getBlocks() Optional. Content of the rich message to send described as a list of blocks
* @method string getHtml() Optional. Content of the rich message to send described using HTML formatting
* @method string getMarkdown() Optional. Content of the rich message to send described using Markdown formatting
* @method InputRichMessageMedia[] getMedia() Optional. List of media that are specified in the markdown or html fields using tg://photo?id=, tg://video?id=, tg://document?id=, and tg://audio?id= links
*/
class InputRichMessage extends Entity
{
/**
* {@inheritdoc}
*/
protected function subEntities(): array
{
return [
'blocks' => [InputRichBlockFactory::class],
'media' => [InputRichMessageMedia::class],
];
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 15, 1:46 PM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
139720
Default Alt Text
InputRichMessage.php (1 KB)

Event Timeline