fix: enforce required command arg positions

This commit is contained in:
2026-03-25 13:17:44 +03:00
parent f0da64c7af
commit eda635e72c
4 changed files with 22 additions and 6 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ func (api *API) RemoveMyProfilePhotoWithContext(ctx context.Context) (bool, erro
// SetChatMenuButtonP holds parameters for the setChatMenuButton method.
// See https://core.telegram.org/bots/api#setchatmenubutton
type SetChatMenuButtonP struct {
ChatID int64 `json:"chat_id"`
ChatID int64 `json:"chat_id,omitempty"`
MenuButton MenuButtonType `json:"menu_button"`
}