You are unable to send a new poll that is non-anonymous. This seems to be because the IsAnonymous field on the SendPollParams type is a non-pointer bool, set to omitempty and defaults to true on the Telegram API. I believe this is why - false boolean is treated as empty and therefore omitted.
You are unable to send a new poll that is non-anonymous. This seems to be because the
IsAnonymous
field on the SendPollParams type is a non-pointerbool
, set toomitempty
and defaults to true on the Telegram API. I believe this is why - false boolean is treated as empty and therefore omitted.To reproduce
I'll open a PR soon to set the type to be a
*bool
which I believe will fix it in this case.