all repos — telegram-bot-api @ ddf0d3631bd0d60b032812e3ebb65df05d2af229

Golang bindings for the Telegram Bot API

Use Params#AddBool for is_closed
TJ Horner me@tjhorner.com
Fri, 24 Jan 2020 22:44:44 -0500
commit

ddf0d3631bd0d60b032812e3ebb65df05d2af229

parent

5aaa0b2d03cc570c5c04e52021b509822c980c3f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M configs.goconfigs.go

@@ -525,7 +525,7 @@ params["is_anonymous"] = strconv.FormatBool(config.IsAnonymous)

params.AddNonEmpty("type", config.Type) params["allows_multiple_answers"] = strconv.FormatBool(config.AllowsMultipleAnswers) 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 }