Add PollEvent to handle new poll updates

This commit is contained in:
netkas 2024-11-01 18:19:47 -04:00
parent d56cc3dd22
commit 31550fc1dc
3 changed files with 36 additions and 0 deletions

View file

@ -91,6 +91,11 @@
return UpdateEventType::POLL_ANSWER;
}
if($update->getPoll() !== null)
{
return UpdateEventType::POLL;
}
return UpdateEventType::UPDATE_EVENT;
}
}