From 63e5c59035bfde1a7babea214eceb0e2e60e816f Mon Sep 17 00:00:00 2001 From: OvyFlash Date: Tue, 9 Jan 2024 01:09:38 +0200 Subject: [PATCH] Fix UserIsBot and UserIsPremium fields in KeyboardButtonRequestUsers struct --- types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index 2c4d856..d3e88ee 100644 --- a/types.go +++ b/types.go @@ -1958,13 +1958,13 @@ type KeyboardButtonRequestUsers struct { // 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 //