all repos — telegram-bot-api @ 45f563879fbcfee2a821f03039e4eaf16074033e

Golang bindings for the Telegram Bot API

Add omitempty to optional fields
OvyFlash olegshva4ko@gmail.com
Wed, 05 Jul 2023 12:13:57 +0300
commit

45f563879fbcfee2a821f03039e4eaf16074033e

parent

7d82083b039394e83ef7319853e29a3d4ef66b60

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

jump to
M configs.goconfigs.go

@@ -1274,7 +1274,6 @@

// InlineQueryResultsButton represents a button to be shown above inline query results. You must use exactly one of the optional fields. type InlineQueryResultsButton struct { //Label text on the button - // Text string `json:"text"` //Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method switchInlineQuery inside the Web App. //
M types.gotypes.go

@@ -1356,7 +1356,7 @@ type WriteAccessAllowed struct {

//Name of the Web App which was launched from a link // // Optional - WebAppName string `json:"web_app_name"` + WebAppName string `json:"web_app_name,omitempty"` } // VideoChatScheduled represents a service message about a voice chat scheduled