Page MenuHomePhabricator (Chris)

PollOption.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

PollOption.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 PollOption
*
* This entity contains information about one answer option in a poll.
*
* @link https://core.telegram.org/bots/api#polloption
*
* @method string getText() Option text, 1-100 characters
* @method int getVoterCount() Number of users that voted for this option
* @method MessageEntity[] getTextEntities() Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts
* @method string getPersistentId() Optional. Unique identifier of the poll option
* @method User getAddedByUser() Optional. User that added the option
* @method Chat getAddedByChat() Optional. Chat that added the option
* @method int getAdditionDate() Optional. Date when the option was added in Unix time
* @method PollMedia getMedia() Optional. Media associated with the option
*/
class PollOption extends Entity
{
/**
* {@inheritdoc}
*/
protected function subEntities(): array
{
return [
'text_entities' => [MessageEntity::class],
'added_by_user' => User::class,
'added_by_chat' => Chat::class,
'media' => PollMedia::class,
];
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 15, 2:52 AM (20 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
137555
Default Alt Text
PollOption.php (1 KB)

Event Timeline