Sets the type of SendPollParams.IsAnonymous to a pointer to a boolean to address the case where setting the value to false (I want a non-anonymous poll) would omit the value, leading to the default of true being selected.
This does mean it's now slightly more awkward to define - have to pass a pointer to a bool value now rather than just a normal bool, but it does fix the issue. Open to suggestions for better approaches if you have any.
Test Results:
❯ go test
PASS
ok github.com/go-telegram/bot 0.864s
Sets the type of SendPollParams.IsAnonymous to a pointer to a boolean to address the case where setting the value to false (I want a non-anonymous poll) would omit the value, leading to the default of true being selected.
This does mean it's now slightly more awkward to define - have to pass a pointer to a bool value now rather than just a normal bool, but it does fix the issue. Open to suggestions for better approaches if you have any.
Test Results:
Closes #25