Use Params#AddBool for is_closed

bot-api-6.1
TJ Horner 2020-01-24 22:44:44 -05:00
parent 5aaa0b2d03
commit ddf0d3631b
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ func (config SendPollConfig) params() (Params, error) {
params.AddNonEmpty("type", config.Type) params.AddNonEmpty("type", config.Type)
params["allows_multiple_answers"] = strconv.FormatBool(config.AllowsMultipleAnswers) params["allows_multiple_answers"] = strconv.FormatBool(config.AllowsMultipleAnswers)
params["correct_option_id"] = strconv.FormatInt(config.CorrectOptionID, 10) params["correct_option_id"] = strconv.FormatInt(config.CorrectOptionID, 10)
params["is_closed"] = strconv.FormatBool(config.IsClosed) params.AddBool("is_closed", config.IsClosed)
return params, err return params, err
} }