Page MenuHomePhabricator (Chris)

PollAnswer.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

PollAnswer.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 PollAnswer
*
* This entity represents an answer of a user in a non-anonymous poll.
*
* @link https://core.telegram.org/bots/api#pollanswer
*
* @method string getPollId() Unique poll identifier
* @method Chat getVoterChat() Optional. The chat that changed the answer to the poll, if the voter is anonymous
* @method User getUser() Optional. The user, who changed the answer to the poll
* @method array getOptionIds() 0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.
*/
class PollAnswer extends Entity
{
/**
* {@inheritdoc}
*/
protected function subEntities(): array
{
return [
'voter_chat' => Chat::class,
'user' => User::class,
];
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 14, 6:58 PM (18 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
129722
Default Alt Text
PollAnswer.php (1 KB)

Event Timeline