// Code generated by gotdgen, DO NOT EDIT.

package tg

import (
	
	
	
	
	

	

	
	
	
	
)

// 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{}
)

// StickerSetCovered represents TL type `stickerSetCovered#6410a5d2`.
// Stickerset with a single sticker as preview
//
// See https://core.telegram.org/constructor/stickerSetCovered for reference.
type StickerSetCovered struct {
	// Stickerset
	Set StickerSet
	// Preview
	Cover DocumentClass
}

// StickerSetCoveredTypeID is TL type id of StickerSetCovered.
const StickerSetCoveredTypeID = 0x6410a5d2

// construct implements constructor of StickerSetCoveredClass.
func ( StickerSetCovered) () StickerSetCoveredClass { return & }

// Ensuring interfaces in compile-time for StickerSetCovered.
var (
	_ bin.Encoder     = &StickerSetCovered{}
	_ bin.Decoder     = &StickerSetCovered{}
	_ bin.BareEncoder = &StickerSetCovered{}
	_ bin.BareDecoder = &StickerSetCovered{}

	_ StickerSetCoveredClass = &StickerSetCovered{}
)

func ( *StickerSetCovered) () bool {
	if  == nil {
		return true
	}
	if !(.Set.Zero()) {
		return false
	}
	if !(.Cover == nil) {
		return false
	}

	return true
}

// String implements fmt.Stringer.
func ( *StickerSetCovered) () string {
	if  == nil {
		return "StickerSetCovered(nil)"
	}
	type  StickerSetCovered
	return fmt.Sprintf("StickerSetCovered%+v", (*))
}

// FillFrom fills StickerSetCovered from given interface.
func ( *StickerSetCovered) ( interface {
	() ( StickerSet)
	() ( DocumentClass)
}) {
	.Set = .()
	.Cover = .()
}

// TypeID returns type id in TL schema.
//
// See https://core.telegram.org/mtproto/TL-tl#remarks.
func (*StickerSetCovered) () uint32 {
	return StickerSetCoveredTypeID
}

// TypeName returns name of type in TL schema.
func (*StickerSetCovered) () string {
	return "stickerSetCovered"
}

// TypeInfo returns info about TL type.
func ( *StickerSetCovered) () tdp.Type {
	 := tdp.Type{
		Name: "stickerSetCovered",
		ID:   StickerSetCoveredTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{
		{
			Name:       "Set",
			SchemaName: "set",
		},
		{
			Name:       "Cover",
			SchemaName: "cover",
		},
	}
	return 
}

// Encode implements bin.Encoder.
func ( *StickerSetCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode stickerSetCovered#6410a5d2 as nil")
	}
	.PutID(StickerSetCoveredTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *StickerSetCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode stickerSetCovered#6410a5d2 as nil")
	}
	if  := .Set.Encode();  != nil {
		return fmt.Errorf("unable to encode stickerSetCovered#6410a5d2: field set: %w", )
	}
	if .Cover == nil {
		return fmt.Errorf("unable to encode stickerSetCovered#6410a5d2: field cover is nil")
	}
	if  := .Cover.Encode();  != nil {
		return fmt.Errorf("unable to encode stickerSetCovered#6410a5d2: field cover: %w", )
	}
	return nil
}

// Decode implements bin.Decoder.
func ( *StickerSetCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode stickerSetCovered#6410a5d2 to nil")
	}
	if  := .ConsumeID(StickerSetCoveredTypeID);  != nil {
		return fmt.Errorf("unable to decode stickerSetCovered#6410a5d2: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *StickerSetCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode stickerSetCovered#6410a5d2 to nil")
	}
	{
		if  := .Set.Decode();  != nil {
			return fmt.Errorf("unable to decode stickerSetCovered#6410a5d2: field set: %w", )
		}
	}
	{
		,  := DecodeDocument()
		if  != nil {
			return fmt.Errorf("unable to decode stickerSetCovered#6410a5d2: field cover: %w", )
		}
		.Cover = 
	}
	return nil
}

// GetSet returns value of Set field.
func ( *StickerSetCovered) () ( StickerSet) {
	if  == nil {
		return
	}
	return .Set
}

// GetCover returns value of Cover field.
func ( *StickerSetCovered) () ( DocumentClass) {
	if  == nil {
		return
	}
	return .Cover
}

// StickerSetMultiCovered represents TL type `stickerSetMultiCovered#3407e51b`.
// Stickerset, with multiple stickers as preview
//
// See https://core.telegram.org/constructor/stickerSetMultiCovered for reference.
type StickerSetMultiCovered struct {
	// Stickerset
	Set StickerSet
	// Preview stickers
	Covers []DocumentClass
}

// StickerSetMultiCoveredTypeID is TL type id of StickerSetMultiCovered.
const StickerSetMultiCoveredTypeID = 0x3407e51b

// construct implements constructor of StickerSetCoveredClass.
func ( StickerSetMultiCovered) () StickerSetCoveredClass { return & }

// Ensuring interfaces in compile-time for StickerSetMultiCovered.
var (
	_ bin.Encoder     = &StickerSetMultiCovered{}
	_ bin.Decoder     = &StickerSetMultiCovered{}
	_ bin.BareEncoder = &StickerSetMultiCovered{}
	_ bin.BareDecoder = &StickerSetMultiCovered{}

	_ StickerSetCoveredClass = &StickerSetMultiCovered{}
)

func ( *StickerSetMultiCovered) () bool {
	if  == nil {
		return true
	}
	if !(.Set.Zero()) {
		return false
	}
	if !(.Covers == nil) {
		return false
	}

	return true
}

// String implements fmt.Stringer.
func ( *StickerSetMultiCovered) () string {
	if  == nil {
		return "StickerSetMultiCovered(nil)"
	}
	type  StickerSetMultiCovered
	return fmt.Sprintf("StickerSetMultiCovered%+v", (*))
}

// FillFrom fills StickerSetMultiCovered from given interface.
func ( *StickerSetMultiCovered) ( interface {
	() ( StickerSet)
	() ( []DocumentClass)
}) {
	.Set = .()
	.Covers = .()
}

// TypeID returns type id in TL schema.
//
// See https://core.telegram.org/mtproto/TL-tl#remarks.
func (*StickerSetMultiCovered) () uint32 {
	return StickerSetMultiCoveredTypeID
}

// TypeName returns name of type in TL schema.
func (*StickerSetMultiCovered) () string {
	return "stickerSetMultiCovered"
}

// TypeInfo returns info about TL type.
func ( *StickerSetMultiCovered) () tdp.Type {
	 := tdp.Type{
		Name: "stickerSetMultiCovered",
		ID:   StickerSetMultiCoveredTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{
		{
			Name:       "Set",
			SchemaName: "set",
		},
		{
			Name:       "Covers",
			SchemaName: "covers",
		},
	}
	return 
}

// Encode implements bin.Encoder.
func ( *StickerSetMultiCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode stickerSetMultiCovered#3407e51b as nil")
	}
	.PutID(StickerSetMultiCoveredTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *StickerSetMultiCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode stickerSetMultiCovered#3407e51b as nil")
	}
	if  := .Set.Encode();  != nil {
		return fmt.Errorf("unable to encode stickerSetMultiCovered#3407e51b: field set: %w", )
	}
	.PutVectorHeader(len(.Covers))
	for ,  := range .Covers {
		if  == nil {
			return fmt.Errorf("unable to encode stickerSetMultiCovered#3407e51b: field covers element with index %d is nil", )
		}
		if  := .Encode();  != nil {
			return fmt.Errorf("unable to encode stickerSetMultiCovered#3407e51b: field covers element with index %d: %w", , )
		}
	}
	return nil
}

// Decode implements bin.Decoder.
func ( *StickerSetMultiCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode stickerSetMultiCovered#3407e51b to nil")
	}
	if  := .ConsumeID(StickerSetMultiCoveredTypeID);  != nil {
		return fmt.Errorf("unable to decode stickerSetMultiCovered#3407e51b: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *StickerSetMultiCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode stickerSetMultiCovered#3407e51b to nil")
	}
	{
		if  := .Set.Decode();  != nil {
			return fmt.Errorf("unable to decode stickerSetMultiCovered#3407e51b: field set: %w", )
		}
	}
	{
		,  := .VectorHeader()
		if  != nil {
			return fmt.Errorf("unable to decode stickerSetMultiCovered#3407e51b: field covers: %w", )
		}

		if  > 0 {
			.Covers = make([]DocumentClass, 0, %bin.PreallocateLimit)
		}
		for  := 0;  < ; ++ {
			,  := DecodeDocument()
			if  != nil {
				return fmt.Errorf("unable to decode stickerSetMultiCovered#3407e51b: field covers: %w", )
			}
			.Covers = append(.Covers, )
		}
	}
	return nil
}

// GetSet returns value of Set field.
func ( *StickerSetMultiCovered) () ( StickerSet) {
	if  == nil {
		return
	}
	return .Set
}

// GetCovers returns value of Covers field.
func ( *StickerSetMultiCovered) () ( []DocumentClass) {
	if  == nil {
		return
	}
	return .Covers
}

// MapCovers returns field Covers wrapped in DocumentClassArray helper.
func ( *StickerSetMultiCovered) () ( DocumentClassArray) {
	return DocumentClassArray(.Covers)
}

// StickerSetFullCovered represents TL type `stickerSetFullCovered#40d13c0e`.
// Stickerset preview with all stickers of the stickerset included.
// Currently used only for custom emoji stickersets¹, to avoid a further call to
// messages.getStickerSet².
//
// Links:
//  1. https://core.telegram.org/api/custom-emoji
//  2. https://core.telegram.org/method/messages.getStickerSet
//
// See https://core.telegram.org/constructor/stickerSetFullCovered for reference.
type StickerSetFullCovered struct {
	// Stickerset
	Set StickerSet
	// Emoji information about every sticker in the stickerset
	Packs []StickerPack
	// Keywords for some or every sticker in the stickerset.
	Keywords []StickerKeyword
	// Stickers
	Documents []DocumentClass
}

// StickerSetFullCoveredTypeID is TL type id of StickerSetFullCovered.
const StickerSetFullCoveredTypeID = 0x40d13c0e

// construct implements constructor of StickerSetCoveredClass.
func ( StickerSetFullCovered) () StickerSetCoveredClass { return & }

// Ensuring interfaces in compile-time for StickerSetFullCovered.
var (
	_ bin.Encoder     = &StickerSetFullCovered{}
	_ bin.Decoder     = &StickerSetFullCovered{}
	_ bin.BareEncoder = &StickerSetFullCovered{}
	_ bin.BareDecoder = &StickerSetFullCovered{}

	_ StickerSetCoveredClass = &StickerSetFullCovered{}
)

func ( *StickerSetFullCovered) () bool {
	if  == nil {
		return true
	}
	if !(.Set.Zero()) {
		return false
	}
	if !(.Packs == nil) {
		return false
	}
	if !(.Keywords == nil) {
		return false
	}
	if !(.Documents == nil) {
		return false
	}

	return true
}

// String implements fmt.Stringer.
func ( *StickerSetFullCovered) () string {
	if  == nil {
		return "StickerSetFullCovered(nil)"
	}
	type  StickerSetFullCovered
	return fmt.Sprintf("StickerSetFullCovered%+v", (*))
}

// FillFrom fills StickerSetFullCovered from given interface.
func ( *StickerSetFullCovered) ( interface {
	() ( StickerSet)
	() ( []StickerPack)
	() ( []StickerKeyword)
	() ( []DocumentClass)
}) {
	.Set = .()
	.Packs = .()
	.Keywords = .()
	.Documents = .()
}

// TypeID returns type id in TL schema.
//
// See https://core.telegram.org/mtproto/TL-tl#remarks.
func (*StickerSetFullCovered) () uint32 {
	return StickerSetFullCoveredTypeID
}

// TypeName returns name of type in TL schema.
func (*StickerSetFullCovered) () string {
	return "stickerSetFullCovered"
}

// TypeInfo returns info about TL type.
func ( *StickerSetFullCovered) () tdp.Type {
	 := tdp.Type{
		Name: "stickerSetFullCovered",
		ID:   StickerSetFullCoveredTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{
		{
			Name:       "Set",
			SchemaName: "set",
		},
		{
			Name:       "Packs",
			SchemaName: "packs",
		},
		{
			Name:       "Keywords",
			SchemaName: "keywords",
		},
		{
			Name:       "Documents",
			SchemaName: "documents",
		},
	}
	return 
}

// Encode implements bin.Encoder.
func ( *StickerSetFullCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode stickerSetFullCovered#40d13c0e as nil")
	}
	.PutID(StickerSetFullCoveredTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *StickerSetFullCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode stickerSetFullCovered#40d13c0e as nil")
	}
	if  := .Set.Encode();  != nil {
		return fmt.Errorf("unable to encode stickerSetFullCovered#40d13c0e: field set: %w", )
	}
	.PutVectorHeader(len(.Packs))
	for ,  := range .Packs {
		if  := .Encode();  != nil {
			return fmt.Errorf("unable to encode stickerSetFullCovered#40d13c0e: field packs element with index %d: %w", , )
		}
	}
	.PutVectorHeader(len(.Keywords))
	for ,  := range .Keywords {
		if  := .Encode();  != nil {
			return fmt.Errorf("unable to encode stickerSetFullCovered#40d13c0e: field keywords element with index %d: %w", , )
		}
	}
	.PutVectorHeader(len(.Documents))
	for ,  := range .Documents {
		if  == nil {
			return fmt.Errorf("unable to encode stickerSetFullCovered#40d13c0e: field documents element with index %d is nil", )
		}
		if  := .Encode();  != nil {
			return fmt.Errorf("unable to encode stickerSetFullCovered#40d13c0e: field documents element with index %d: %w", , )
		}
	}
	return nil
}

// Decode implements bin.Decoder.
func ( *StickerSetFullCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode stickerSetFullCovered#40d13c0e to nil")
	}
	if  := .ConsumeID(StickerSetFullCoveredTypeID);  != nil {
		return fmt.Errorf("unable to decode stickerSetFullCovered#40d13c0e: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *StickerSetFullCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode stickerSetFullCovered#40d13c0e to nil")
	}
	{
		if  := .Set.Decode();  != nil {
			return fmt.Errorf("unable to decode stickerSetFullCovered#40d13c0e: field set: %w", )
		}
	}
	{
		,  := .VectorHeader()
		if  != nil {
			return fmt.Errorf("unable to decode stickerSetFullCovered#40d13c0e: field packs: %w", )
		}

		if  > 0 {
			.Packs = make([]StickerPack, 0, %bin.PreallocateLimit)
		}
		for  := 0;  < ; ++ {
			var  StickerPack
			if  := .Decode();  != nil {
				return fmt.Errorf("unable to decode stickerSetFullCovered#40d13c0e: field packs: %w", )
			}
			.Packs = append(.Packs, )
		}
	}
	{
		,  := .VectorHeader()
		if  != nil {
			return fmt.Errorf("unable to decode stickerSetFullCovered#40d13c0e: field keywords: %w", )
		}

		if  > 0 {
			.Keywords = make([]StickerKeyword, 0, %bin.PreallocateLimit)
		}
		for  := 0;  < ; ++ {
			var  StickerKeyword
			if  := .Decode();  != nil {
				return fmt.Errorf("unable to decode stickerSetFullCovered#40d13c0e: field keywords: %w", )
			}
			.Keywords = append(.Keywords, )
		}
	}
	{
		,  := .VectorHeader()
		if  != nil {
			return fmt.Errorf("unable to decode stickerSetFullCovered#40d13c0e: field documents: %w", )
		}

		if  > 0 {
			.Documents = make([]DocumentClass, 0, %bin.PreallocateLimit)
		}
		for  := 0;  < ; ++ {
			,  := DecodeDocument()
			if  != nil {
				return fmt.Errorf("unable to decode stickerSetFullCovered#40d13c0e: field documents: %w", )
			}
			.Documents = append(.Documents, )
		}
	}
	return nil
}

// GetSet returns value of Set field.
func ( *StickerSetFullCovered) () ( StickerSet) {
	if  == nil {
		return
	}
	return .Set
}

// GetPacks returns value of Packs field.
func ( *StickerSetFullCovered) () ( []StickerPack) {
	if  == nil {
		return
	}
	return .Packs
}

// GetKeywords returns value of Keywords field.
func ( *StickerSetFullCovered) () ( []StickerKeyword) {
	if  == nil {
		return
	}
	return .Keywords
}

// GetDocuments returns value of Documents field.
func ( *StickerSetFullCovered) () ( []DocumentClass) {
	if  == nil {
		return
	}
	return .Documents
}

// MapDocuments returns field Documents wrapped in DocumentClassArray helper.
func ( *StickerSetFullCovered) () ( DocumentClassArray) {
	return DocumentClassArray(.Documents)
}

// StickerSetNoCovered represents TL type `stickerSetNoCovered#77b15d1c`.
// Just the stickerset information, with no previews.
//
// See https://core.telegram.org/constructor/stickerSetNoCovered for reference.
type StickerSetNoCovered struct {
	// Stickerset information.
	Set StickerSet
}

// StickerSetNoCoveredTypeID is TL type id of StickerSetNoCovered.
const StickerSetNoCoveredTypeID = 0x77b15d1c

// construct implements constructor of StickerSetCoveredClass.
func ( StickerSetNoCovered) () StickerSetCoveredClass { return & }

// Ensuring interfaces in compile-time for StickerSetNoCovered.
var (
	_ bin.Encoder     = &StickerSetNoCovered{}
	_ bin.Decoder     = &StickerSetNoCovered{}
	_ bin.BareEncoder = &StickerSetNoCovered{}
	_ bin.BareDecoder = &StickerSetNoCovered{}

	_ StickerSetCoveredClass = &StickerSetNoCovered{}
)

func ( *StickerSetNoCovered) () bool {
	if  == nil {
		return true
	}
	if !(.Set.Zero()) {
		return false
	}

	return true
}

// String implements fmt.Stringer.
func ( *StickerSetNoCovered) () string {
	if  == nil {
		return "StickerSetNoCovered(nil)"
	}
	type  StickerSetNoCovered
	return fmt.Sprintf("StickerSetNoCovered%+v", (*))
}

// FillFrom fills StickerSetNoCovered from given interface.
func ( *StickerSetNoCovered) ( interface {
	() ( StickerSet)
}) {
	.Set = .()
}

// TypeID returns type id in TL schema.
//
// See https://core.telegram.org/mtproto/TL-tl#remarks.
func (*StickerSetNoCovered) () uint32 {
	return StickerSetNoCoveredTypeID
}

// TypeName returns name of type in TL schema.
func (*StickerSetNoCovered) () string {
	return "stickerSetNoCovered"
}

// TypeInfo returns info about TL type.
func ( *StickerSetNoCovered) () tdp.Type {
	 := tdp.Type{
		Name: "stickerSetNoCovered",
		ID:   StickerSetNoCoveredTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{
		{
			Name:       "Set",
			SchemaName: "set",
		},
	}
	return 
}

// Encode implements bin.Encoder.
func ( *StickerSetNoCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode stickerSetNoCovered#77b15d1c as nil")
	}
	.PutID(StickerSetNoCoveredTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *StickerSetNoCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode stickerSetNoCovered#77b15d1c as nil")
	}
	if  := .Set.Encode();  != nil {
		return fmt.Errorf("unable to encode stickerSetNoCovered#77b15d1c: field set: %w", )
	}
	return nil
}

// Decode implements bin.Decoder.
func ( *StickerSetNoCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode stickerSetNoCovered#77b15d1c to nil")
	}
	if  := .ConsumeID(StickerSetNoCoveredTypeID);  != nil {
		return fmt.Errorf("unable to decode stickerSetNoCovered#77b15d1c: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *StickerSetNoCovered) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode stickerSetNoCovered#77b15d1c to nil")
	}
	{
		if  := .Set.Decode();  != nil {
			return fmt.Errorf("unable to decode stickerSetNoCovered#77b15d1c: field set: %w", )
		}
	}
	return nil
}

// GetSet returns value of Set field.
func ( *StickerSetNoCovered) () ( StickerSet) {
	if  == nil {
		return
	}
	return .Set
}

// StickerSetCoveredClassName is schema name of StickerSetCoveredClass.
const StickerSetCoveredClassName = "StickerSetCovered"

// StickerSetCoveredClass represents StickerSetCovered generic type.
//
// See https://core.telegram.org/type/StickerSetCovered for reference.
//
// Example:
//
//	g, err := tg.DecodeStickerSetCovered(buf)
//	if err != nil {
//	    panic(err)
//	}
//	switch v := g.(type) {
//	case *tg.StickerSetCovered: // stickerSetCovered#6410a5d2
//	case *tg.StickerSetMultiCovered: // stickerSetMultiCovered#3407e51b
//	case *tg.StickerSetFullCovered: // stickerSetFullCovered#40d13c0e
//	case *tg.StickerSetNoCovered: // stickerSetNoCovered#77b15d1c
//	default: panic(v)
//	}
type StickerSetCoveredClass interface {
	bin.Encoder
	bin.Decoder
	bin.BareEncoder
	bin.BareDecoder
	construct() StickerSetCoveredClass

	// TypeID returns type id in TL schema.
	//
	// See https://core.telegram.org/mtproto/TL-tl#remarks.
	TypeID() uint32
	// TypeName returns name of type in TL schema.
	TypeName() string
	// String implements fmt.Stringer.
	String() string
	// Zero returns true if current object has a zero value.
	Zero() bool

	// Stickerset
	GetSet() (value StickerSet)
}

// DecodeStickerSetCovered implements binary de-serialization for StickerSetCoveredClass.
func ( *bin.Buffer) (StickerSetCoveredClass, error) {
	,  := .PeekID()
	if  != nil {
		return nil, 
	}
	switch  {
	case StickerSetCoveredTypeID:
		// Decoding stickerSetCovered#6410a5d2.
		 := StickerSetCovered{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode StickerSetCoveredClass: %w", )
		}
		return &, nil
	case StickerSetMultiCoveredTypeID:
		// Decoding stickerSetMultiCovered#3407e51b.
		 := StickerSetMultiCovered{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode StickerSetCoveredClass: %w", )
		}
		return &, nil
	case StickerSetFullCoveredTypeID:
		// Decoding stickerSetFullCovered#40d13c0e.
		 := StickerSetFullCovered{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode StickerSetCoveredClass: %w", )
		}
		return &, nil
	case StickerSetNoCoveredTypeID:
		// Decoding stickerSetNoCovered#77b15d1c.
		 := StickerSetNoCovered{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode StickerSetCoveredClass: %w", )
		}
		return &, nil
	default:
		return nil, fmt.Errorf("unable to decode StickerSetCoveredClass: %w", bin.NewUnexpectedID())
	}
}

// StickerSetCovered boxes the StickerSetCoveredClass providing a helper.
type StickerSetCoveredBox struct {
	StickerSetCovered StickerSetCoveredClass
}

// Decode implements bin.Decoder for StickerSetCoveredBox.
func ( *StickerSetCoveredBox) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("unable to decode StickerSetCoveredBox to nil")
	}
	,  := DecodeStickerSetCovered()
	if  != nil {
		return fmt.Errorf("unable to decode boxed value: %w", )
	}
	.StickerSetCovered = 
	return nil
}

// Encode implements bin.Encode for StickerSetCoveredBox.
func ( *StickerSetCoveredBox) ( *bin.Buffer) error {
	if  == nil || .StickerSetCovered == nil {
		return fmt.Errorf("unable to encode StickerSetCoveredClass as nil")
	}
	return .StickerSetCovered.Encode()
}