Added the options function to polls and quizzes#765
Conversation
Kawesom
commented
May 12, 2026
- this allows you to pass an array of options to a poll/quizz as opposed to how it was previously done by calling the option function for each item you wanted to added.
- this PR includes tests for the new function as well.
- this allows you to pass an array of options to a poll/quizz as opposed to how it was previously done by calling the option function for each item you wanted to added. - this PR includes tests for the new function as well.
|
Hi @Kawesom Thanks for the merge request, can you update the documentation with the new method. That would be really appreciated |
Ok, will do |
- changed error message in tooManyOptions TelegraphpollException to reflect actual limit which is 12 and not 10. - added documentation for new poll/quiz $options method - fix minor issue with the $options function for quizzes
|
I've added the documentation as you requested |
I keep getting the " WARN No code coverage driver available" from github actions, don't know how to resolve that |
|
@Kawesom in the "run-test.yml" file you need to edit the "execute test" step like this without coverage |
Ok, will do |