From 0832fa8ef85adaa80d8a5a0826c4372c8a96c64f Mon Sep 17 00:00:00 2001 From: Ross Gustafson Date: Mon, 10 Apr 2023 08:33:03 +0100 Subject: [PATCH] Set IsAnonymous poll param to pointer (#26) --- methods_params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/methods_params.go b/methods_params.go index c241123..31e989f 100644 --- a/methods_params.go +++ b/methods_params.go @@ -255,7 +255,7 @@ type SendPollParams struct { MessageThreadID int `json:"message_thread_id,omitempty"` Question string `json:"question"` Options []string `json:"options"` - IsAnonymous bool `json:"is_anonymous,omitempty"` + IsAnonymous *bool `json:"is_anonymous,omitempty"` Type string `json:"type,omitempty"` AllowsMultipleAnswers bool `json:"allows_multiple_answers,omitempty"` CorrectOptionID int `json:"correct_option_id"`