Skip to content

Commit 6f8b3c5

Browse files
committed
fix: omitempty for request_contact & request_location in KeyboardButton
1 parent 6781167 commit 6f8b3c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tgbotapi/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,8 @@ type KeyboardButton struct {
435435
Text string `json:"text"`
436436
RequestUsers *KeyboardButtonRequestUsers `json:"request_users,omitempty"`
437437
RequestChat *KeyboardButtonRequestChat `json:"request_chat,omitempty"`
438-
RequestContact bool `json:"request_contact"`
439-
RequestLocation bool `json:"request_location"`
438+
RequestContact bool `json:"request_contact,omitempty"`
439+
RequestLocation bool `json:"request_location,omitempty"`
440440
RequestPoll *KeyboardButtonPollType `json:"request_poll,omitempty"`
441441
Webapp *WebAppInfo `json:"web_app,omitempty"`
442442
}

0 commit comments

Comments
 (0)