all repos — telegram-bot-api @ 63e5c59035bfde1a7babea214eceb0e2e60e816f

Golang bindings for the Telegram Bot API

Fix UserIsBot and UserIsPremium fields in KeyboardButtonRequestUsers struct
OvyFlash olegshva4ko@gmail.com
Tue, 09 Jan 2024 01:09:38 +0200
commit

63e5c59035bfde1a7babea214eceb0e2e60e816f

parent

a687eafa688398901a2328c55a597438d84d175d

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

jump to
M types.gotypes.go

@@ -1958,13 +1958,13 @@ // pass False to request a regular user.

// If not specified, no additional restrictions are applied. // // optional - UserIsBot bool `json:"user_is_bot,omitempty"` + UserIsBot *bool `json:"user_is_bot,omitempty"` // UserIsPremium pass True to request a premium user, // pass False to request a non-premium user. // If not specified, no additional restrictions are applied. // // optional - UserIsPremium bool `json:"user_is_premium,omitempty"` + UserIsPremium *bool `json:"user_is_premium,omitempty"` // MaxQuantity is the maximum number of users to be selected. // 1-10. Defaults to 1 //