code: func (t *ConfirmTemplate) MarshalJSON() ([]byte, error) {
  	return json.Marshal(&struct {
  		Type    TemplateType     `json:"type"`
  		Text    string           `json:"text"`
  		Actions []TemplateAction `json:"actions"`
  	}{
  		Type:    TemplateTypeConfirm,
  		Text:    t.Text,
  		Actions: t.Actions,
  	})
  }
docs: // MarshalJSON method of ConfirmTemplate