Page MenuHomePhabricator (Chris)

MessageEntity.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

MessageEntity.php

<?php
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\TelegramBot\Entities;
/**
* Class MessageEntity
*
* @link https://core.telegram.org/bots/api#messageentity
*
* @method string getType() Type of the entity. Can be mention (@username), hashtag, bot_command, url, email, bold (bold text), italic (italic text), code (monowidth string), pre (monowidth block), text_link (for clickable text URLs), text_mention (for users without usernames)
* @method int getOffset() Offset in UTF-16 code units to the start of the entity
* @method int getLength() Length of the entity in UTF-16 code units
* @method string getUrl() Optional. For "text_link" only, url that will be opened after user taps on the text
* @method User getUser() Optional. For "text_mention" only, the mentioned user
*/
class MessageEntity extends Entity
{
/**
* {@inheritdoc}
*/
protected function subEntities()
{
return [
'user' => User::class,
];
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 15, 7:06 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
128438
Default Alt Text
MessageEntity.php (1 KB)

Event Timeline