for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TelegramBot\Entities;
use TelegramBot\Entity;
/**
* 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 User getUser() 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 [
'user' => User::class,
];
}