You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: tl_boost_chat_gen.go
    path of file: ./repos/td/tdapi
    
    the code of the file until where you have to start completion: // Code generated by gotdgen, DO NOT EDIT.

package tdapi

import (
	"context"
	"errors"
	"fmt"
	"sort"
	"strings"

	"go.uber.org/multierr"

	"github.com/gotd/td/bin"
	"github.com/gotd/td/tdjson"
	"github.com/gotd/td/tdp"
	"github.com/gotd/td/tgerr"
)

// No-op definition for keeping imports.
var (
	_ = bin.Buffer{}
	_ = context.Background()
	_ = fmt.Stringer(nil)
	_ = strings.Builder{}
	_ = errors.Is
	_ = multierr.AppendInto
	_ = sort.Ints
	_ = tdp.Format
	_ = tgerr.Error{}
	_ = tdjson.Encoder{}
)

// BoostChatRequest represents TL type `boostChat#890ccd68`.
type BoostChatRequest struct {
	// Identifier of the chat
	ChatID int64
	// Identifiers of boost slots of the current user from which to apply boosts to the chat
	SlotIDs []int32
}

// BoostChatRequestTypeID is TL type id of BoostChatRequest.
const BoostCha
    
func (b *BoostChatRequest) DecodeTDLibJSON(buf tdjson.Decoder) error {
	if b == nil {
		return fmt.Errorf("can't decode boostChat#890ccd68 to nil")
	}

	return buf.Obj(func(buf tdjson.Decoder, key []byte) error {
		switch string(key) {
		case tdjson.TypeField:
			if err := buf.ConsumeID("boostChat"); err != nil {
				return fmt.Errorf("unable to decode boostChat#890ccd68: %w", err)
			}
		case "chat_id":
			value, err := buf.Int53()
			if err != nil {
				return fmt.Errorf("unable to decode boostChat#890ccd68: field chat_id: %w", err)
			}
			b.ChatID = value
		case "slot_ids":
			if err := buf.Arr(func(buf tdjson.Decoder) error {
				value, err := buf.Int32()
				if err != nil {
					return fmt.Errorf("unable to decode boostChat#890ccd68: field slot_ids: %w", err)
				}
				b.SlotIDs = append(b.SlotIDs, value)
				return nil
			}); err != nil {
				return fmt.Errorf("unable to decode boostChat#890ccd68: field slot_ids: %w", err)
			}
		default:
			return buf.Skip()
		}
		return nil
	})
}