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

// InputStickerSetEmpty represents TL type `inputStickerSetEmpty#ffb62b95`.
// Empty constructor
//
// See https://core.telegram.org/constructor/inputStickerSetEmpty for reference.
type InputStickerSetEmpty struct {
}

// InputStickerSetEmptyTypeID is TL type id of InputStickerSetEmpty.
const InputStickerSetEmptyTypeID = 0xffb62b95

// construct implements constructor of InputStickerSetClass.
func ( InputStickerSetEmpty) () InputStickerSetClass { return & }

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

	_ InputStickerSetClass = &InputStickerSetEmpty{}
)

func ( *InputStickerSetEmpty) () bool {
	if  == nil {
		return true
	}

	return true
}

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

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

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

// TypeInfo returns info about TL type.
func ( *InputStickerSetEmpty) () tdp.Type {
	 := tdp.Type{
		Name: "inputStickerSetEmpty",
		ID:   InputStickerSetEmptyTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{}
	return 
}

// Encode implements bin.Encoder.
func ( *InputStickerSetEmpty) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetEmpty#ffb62b95 as nil")
	}
	.PutID(InputStickerSetEmptyTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *InputStickerSetEmpty) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetEmpty#ffb62b95 as nil")
	}
	return nil
}

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

// DecodeBare implements bin.BareDecoder.
func ( *InputStickerSetEmpty) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetEmpty#ffb62b95 to nil")
	}
	return nil
}

// InputStickerSetID represents TL type `inputStickerSetID#9de7a269`.
// Stickerset by ID
//
// See https://core.telegram.org/constructor/inputStickerSetID for reference.
type InputStickerSetID struct {
	// ID
	ID int64
	// Access hash
	AccessHash int64
}

// InputStickerSetIDTypeID is TL type id of InputStickerSetID.
const InputStickerSetIDTypeID = 0x9de7a269

// construct implements constructor of InputStickerSetClass.
func ( InputStickerSetID) () InputStickerSetClass { return & }

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

	_ InputStickerSetClass = &InputStickerSetID{}
)

func ( *InputStickerSetID) () bool {
	if  == nil {
		return true
	}
	if !(.ID == 0) {
		return false
	}
	if !(.AccessHash == 0) {
		return false
	}

	return true
}

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

// FillFrom fills InputStickerSetID from given interface.
func ( *InputStickerSetID) ( interface {
	() ( int64)
	() ( int64)
}) {
	.ID = .()
	.AccessHash = .()
}

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

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

// TypeInfo returns info about TL type.
func ( *InputStickerSetID) () tdp.Type {
	 := tdp.Type{
		Name: "inputStickerSetID",
		ID:   InputStickerSetIDTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{
		{
			Name:       "ID",
			SchemaName: "id",
		},
		{
			Name:       "AccessHash",
			SchemaName: "access_hash",
		},
	}
	return 
}

// Encode implements bin.Encoder.
func ( *InputStickerSetID) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetID#9de7a269 as nil")
	}
	.PutID(InputStickerSetIDTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *InputStickerSetID) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetID#9de7a269 as nil")
	}
	.PutLong(.ID)
	.PutLong(.AccessHash)
	return nil
}

// Decode implements bin.Decoder.
func ( *InputStickerSetID) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetID#9de7a269 to nil")
	}
	if  := .ConsumeID(InputStickerSetIDTypeID);  != nil {
		return fmt.Errorf("unable to decode inputStickerSetID#9de7a269: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *InputStickerSetID) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetID#9de7a269 to nil")
	}
	{
		,  := .Long()
		if  != nil {
			return fmt.Errorf("unable to decode inputStickerSetID#9de7a269: field id: %w", )
		}
		.ID = 
	}
	{
		,  := .Long()
		if  != nil {
			return fmt.Errorf("unable to decode inputStickerSetID#9de7a269: field access_hash: %w", )
		}
		.AccessHash = 
	}
	return nil
}

// GetID returns value of ID field.
func ( *InputStickerSetID) () ( int64) {
	if  == nil {
		return
	}
	return .ID
}

// GetAccessHash returns value of AccessHash field.
func ( *InputStickerSetID) () ( int64) {
	if  == nil {
		return
	}
	return .AccessHash
}

// InputStickerSetShortName represents TL type `inputStickerSetShortName#861cc8a0`.
// Stickerset by short name, from a stickerset deep link »¹
//
// Links:
//  1. https://core.telegram.org/api/links#stickerset-links
//
// See https://core.telegram.org/constructor/inputStickerSetShortName for reference.
type InputStickerSetShortName struct {
	// Short name from a stickerset deep link »¹
	//
	// Links:
	//  1) https://core.telegram.org/api/links#stickerset-links
	ShortName string
}

// InputStickerSetShortNameTypeID is TL type id of InputStickerSetShortName.
const InputStickerSetShortNameTypeID = 0x861cc8a0

// construct implements constructor of InputStickerSetClass.
func ( InputStickerSetShortName) () InputStickerSetClass { return & }

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

	_ InputStickerSetClass = &InputStickerSetShortName{}
)

func ( *InputStickerSetShortName) () bool {
	if  == nil {
		return true
	}
	if !(.ShortName == "") {
		return false
	}

	return true
}

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

// FillFrom fills InputStickerSetShortName from given interface.
func ( *InputStickerSetShortName) ( interface {
	() ( string)
}) {
	.ShortName = .()
}

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

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

// TypeInfo returns info about TL type.
func ( *InputStickerSetShortName) () tdp.Type {
	 := tdp.Type{
		Name: "inputStickerSetShortName",
		ID:   InputStickerSetShortNameTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{
		{
			Name:       "ShortName",
			SchemaName: "short_name",
		},
	}
	return 
}

// Encode implements bin.Encoder.
func ( *InputStickerSetShortName) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetShortName#861cc8a0 as nil")
	}
	.PutID(InputStickerSetShortNameTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *InputStickerSetShortName) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetShortName#861cc8a0 as nil")
	}
	.PutString(.ShortName)
	return nil
}

// Decode implements bin.Decoder.
func ( *InputStickerSetShortName) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetShortName#861cc8a0 to nil")
	}
	if  := .ConsumeID(InputStickerSetShortNameTypeID);  != nil {
		return fmt.Errorf("unable to decode inputStickerSetShortName#861cc8a0: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *InputStickerSetShortName) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetShortName#861cc8a0 to nil")
	}
	{
		,  := .String()
		if  != nil {
			return fmt.Errorf("unable to decode inputStickerSetShortName#861cc8a0: field short_name: %w", )
		}
		.ShortName = 
	}
	return nil
}

// GetShortName returns value of ShortName field.
func ( *InputStickerSetShortName) () ( string) {
	if  == nil {
		return
	}
	return .ShortName
}

// InputStickerSetAnimatedEmoji represents TL type `inputStickerSetAnimatedEmoji#28703c8`.
// Animated emojis stickerset
//
// See https://core.telegram.org/constructor/inputStickerSetAnimatedEmoji for reference.
type InputStickerSetAnimatedEmoji struct {
}

// InputStickerSetAnimatedEmojiTypeID is TL type id of InputStickerSetAnimatedEmoji.
const InputStickerSetAnimatedEmojiTypeID = 0x28703c8

// construct implements constructor of InputStickerSetClass.
func ( InputStickerSetAnimatedEmoji) () InputStickerSetClass { return & }

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

	_ InputStickerSetClass = &InputStickerSetAnimatedEmoji{}
)

func ( *InputStickerSetAnimatedEmoji) () bool {
	if  == nil {
		return true
	}

	return true
}

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

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

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

// TypeInfo returns info about TL type.
func ( *InputStickerSetAnimatedEmoji) () tdp.Type {
	 := tdp.Type{
		Name: "inputStickerSetAnimatedEmoji",
		ID:   InputStickerSetAnimatedEmojiTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{}
	return 
}

// Encode implements bin.Encoder.
func ( *InputStickerSetAnimatedEmoji) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetAnimatedEmoji#28703c8 as nil")
	}
	.PutID(InputStickerSetAnimatedEmojiTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *InputStickerSetAnimatedEmoji) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetAnimatedEmoji#28703c8 as nil")
	}
	return nil
}

// Decode implements bin.Decoder.
func ( *InputStickerSetAnimatedEmoji) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetAnimatedEmoji#28703c8 to nil")
	}
	if  := .ConsumeID(InputStickerSetAnimatedEmojiTypeID);  != nil {
		return fmt.Errorf("unable to decode inputStickerSetAnimatedEmoji#28703c8: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *InputStickerSetAnimatedEmoji) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetAnimatedEmoji#28703c8 to nil")
	}
	return nil
}

// InputStickerSetDice represents TL type `inputStickerSetDice#e67f520e`.
// Used for fetching animated dice stickers¹
//
// Links:
//  1. https://core.telegram.org/api/dice
//
// See https://core.telegram.org/constructor/inputStickerSetDice for reference.
type InputStickerSetDice struct {
	// The emoji, for now ,  and  are supported
	Emoticon string
}

// InputStickerSetDiceTypeID is TL type id of InputStickerSetDice.
const InputStickerSetDiceTypeID = 0xe67f520e

// construct implements constructor of InputStickerSetClass.
func ( InputStickerSetDice) () InputStickerSetClass { return & }

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

	_ InputStickerSetClass = &InputStickerSetDice{}
)

func ( *InputStickerSetDice) () bool {
	if  == nil {
		return true
	}
	if !(.Emoticon == "") {
		return false
	}

	return true
}

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

// FillFrom fills InputStickerSetDice from given interface.
func ( *InputStickerSetDice) ( interface {
	() ( string)
}) {
	.Emoticon = .()
}

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

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

// TypeInfo returns info about TL type.
func ( *InputStickerSetDice) () tdp.Type {
	 := tdp.Type{
		Name: "inputStickerSetDice",
		ID:   InputStickerSetDiceTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{
		{
			Name:       "Emoticon",
			SchemaName: "emoticon",
		},
	}
	return 
}

// Encode implements bin.Encoder.
func ( *InputStickerSetDice) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetDice#e67f520e as nil")
	}
	.PutID(InputStickerSetDiceTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *InputStickerSetDice) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetDice#e67f520e as nil")
	}
	.PutString(.Emoticon)
	return nil
}

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

// DecodeBare implements bin.BareDecoder.
func ( *InputStickerSetDice) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetDice#e67f520e to nil")
	}
	{
		,  := .String()
		if  != nil {
			return fmt.Errorf("unable to decode inputStickerSetDice#e67f520e: field emoticon: %w", )
		}
		.Emoticon = 
	}
	return nil
}

// GetEmoticon returns value of Emoticon field.
func ( *InputStickerSetDice) () ( string) {
	if  == nil {
		return
	}
	return .Emoticon
}

// InputStickerSetAnimatedEmojiAnimations represents TL type `inputStickerSetAnimatedEmojiAnimations#cde3739`.
// Animated emoji reaction stickerset (contains animations to play when a user clicks on
// a given animated emoji)
//
// See https://core.telegram.org/constructor/inputStickerSetAnimatedEmojiAnimations for reference.
type InputStickerSetAnimatedEmojiAnimations struct {
}

// InputStickerSetAnimatedEmojiAnimationsTypeID is TL type id of InputStickerSetAnimatedEmojiAnimations.
const InputStickerSetAnimatedEmojiAnimationsTypeID = 0xcde3739

// construct implements constructor of InputStickerSetClass.
func ( InputStickerSetAnimatedEmojiAnimations) () InputStickerSetClass { return & }

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

	_ InputStickerSetClass = &InputStickerSetAnimatedEmojiAnimations{}
)

func ( *InputStickerSetAnimatedEmojiAnimations) () bool {
	if  == nil {
		return true
	}

	return true
}

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

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

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

// TypeInfo returns info about TL type.
func ( *InputStickerSetAnimatedEmojiAnimations) () tdp.Type {
	 := tdp.Type{
		Name: "inputStickerSetAnimatedEmojiAnimations",
		ID:   InputStickerSetAnimatedEmojiAnimationsTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{}
	return 
}

// Encode implements bin.Encoder.
func ( *InputStickerSetAnimatedEmojiAnimations) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetAnimatedEmojiAnimations#cde3739 as nil")
	}
	.PutID(InputStickerSetAnimatedEmojiAnimationsTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *InputStickerSetAnimatedEmojiAnimations) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetAnimatedEmojiAnimations#cde3739 as nil")
	}
	return nil
}

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

// DecodeBare implements bin.BareDecoder.
func ( *InputStickerSetAnimatedEmojiAnimations) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetAnimatedEmojiAnimations#cde3739 to nil")
	}
	return nil
}

// InputStickerSetPremiumGifts represents TL type `inputStickerSetPremiumGifts#c88b3b02`.
// Stickers to show when receiving a gifted Telegram Premium subscription
//
// See https://core.telegram.org/constructor/inputStickerSetPremiumGifts for reference.
type InputStickerSetPremiumGifts struct {
}

// InputStickerSetPremiumGiftsTypeID is TL type id of InputStickerSetPremiumGifts.
const InputStickerSetPremiumGiftsTypeID = 0xc88b3b02

// construct implements constructor of InputStickerSetClass.
func ( InputStickerSetPremiumGifts) () InputStickerSetClass { return & }

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

	_ InputStickerSetClass = &InputStickerSetPremiumGifts{}
)

func ( *InputStickerSetPremiumGifts) () bool {
	if  == nil {
		return true
	}

	return true
}

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

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

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

// TypeInfo returns info about TL type.
func ( *InputStickerSetPremiumGifts) () tdp.Type {
	 := tdp.Type{
		Name: "inputStickerSetPremiumGifts",
		ID:   InputStickerSetPremiumGiftsTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{}
	return 
}

// Encode implements bin.Encoder.
func ( *InputStickerSetPremiumGifts) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetPremiumGifts#c88b3b02 as nil")
	}
	.PutID(InputStickerSetPremiumGiftsTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *InputStickerSetPremiumGifts) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetPremiumGifts#c88b3b02 as nil")
	}
	return nil
}

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

// DecodeBare implements bin.BareDecoder.
func ( *InputStickerSetPremiumGifts) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetPremiumGifts#c88b3b02 to nil")
	}
	return nil
}

// InputStickerSetEmojiGenericAnimations represents TL type `inputStickerSetEmojiGenericAnimations#4c4d4ce`.
// Generic animation stickerset containing animations to play when reacting to messages
// using a normal emoji without a custom animation¹
//
// Links:
//  1. https://core.telegram.org/api/reactions
//
// See https://core.telegram.org/constructor/inputStickerSetEmojiGenericAnimations for reference.
type InputStickerSetEmojiGenericAnimations struct {
}

// InputStickerSetEmojiGenericAnimationsTypeID is TL type id of InputStickerSetEmojiGenericAnimations.
const InputStickerSetEmojiGenericAnimationsTypeID = 0x4c4d4ce

// construct implements constructor of InputStickerSetClass.
func ( InputStickerSetEmojiGenericAnimations) () InputStickerSetClass { return & }

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

	_ InputStickerSetClass = &InputStickerSetEmojiGenericAnimations{}
)

func ( *InputStickerSetEmojiGenericAnimations) () bool {
	if  == nil {
		return true
	}

	return true
}

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

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

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

// TypeInfo returns info about TL type.
func ( *InputStickerSetEmojiGenericAnimations) () tdp.Type {
	 := tdp.Type{
		Name: "inputStickerSetEmojiGenericAnimations",
		ID:   InputStickerSetEmojiGenericAnimationsTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{}
	return 
}

// Encode implements bin.Encoder.
func ( *InputStickerSetEmojiGenericAnimations) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetEmojiGenericAnimations#4c4d4ce as nil")
	}
	.PutID(InputStickerSetEmojiGenericAnimationsTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *InputStickerSetEmojiGenericAnimations) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetEmojiGenericAnimations#4c4d4ce as nil")
	}
	return nil
}

// Decode implements bin.Decoder.
func ( *InputStickerSetEmojiGenericAnimations) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetEmojiGenericAnimations#4c4d4ce to nil")
	}
	if  := .ConsumeID(InputStickerSetEmojiGenericAnimationsTypeID);  != nil {
		return fmt.Errorf("unable to decode inputStickerSetEmojiGenericAnimations#4c4d4ce: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *InputStickerSetEmojiGenericAnimations) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetEmojiGenericAnimations#4c4d4ce to nil")
	}
	return nil
}

// InputStickerSetEmojiDefaultStatuses represents TL type `inputStickerSetEmojiDefaultStatuses#29d0f5ee`.
// Default custom emoji status¹ stickerset
//
// Links:
//  1. https://core.telegram.org/api/emoji-status
//
// See https://core.telegram.org/constructor/inputStickerSetEmojiDefaultStatuses for reference.
type InputStickerSetEmojiDefaultStatuses struct {
}

// InputStickerSetEmojiDefaultStatusesTypeID is TL type id of InputStickerSetEmojiDefaultStatuses.
const InputStickerSetEmojiDefaultStatusesTypeID = 0x29d0f5ee

// construct implements constructor of InputStickerSetClass.
func ( InputStickerSetEmojiDefaultStatuses) () InputStickerSetClass { return & }

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

	_ InputStickerSetClass = &InputStickerSetEmojiDefaultStatuses{}
)

func ( *InputStickerSetEmojiDefaultStatuses) () bool {
	if  == nil {
		return true
	}

	return true
}

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

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

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

// TypeInfo returns info about TL type.
func ( *InputStickerSetEmojiDefaultStatuses) () tdp.Type {
	 := tdp.Type{
		Name: "inputStickerSetEmojiDefaultStatuses",
		ID:   InputStickerSetEmojiDefaultStatusesTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{}
	return 
}

// Encode implements bin.Encoder.
func ( *InputStickerSetEmojiDefaultStatuses) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetEmojiDefaultStatuses#29d0f5ee as nil")
	}
	.PutID(InputStickerSetEmojiDefaultStatusesTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *InputStickerSetEmojiDefaultStatuses) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetEmojiDefaultStatuses#29d0f5ee as nil")
	}
	return nil
}

// Decode implements bin.Decoder.
func ( *InputStickerSetEmojiDefaultStatuses) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetEmojiDefaultStatuses#29d0f5ee to nil")
	}
	if  := .ConsumeID(InputStickerSetEmojiDefaultStatusesTypeID);  != nil {
		return fmt.Errorf("unable to decode inputStickerSetEmojiDefaultStatuses#29d0f5ee: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *InputStickerSetEmojiDefaultStatuses) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetEmojiDefaultStatuses#29d0f5ee to nil")
	}
	return nil
}

// InputStickerSetEmojiDefaultTopicIcons represents TL type `inputStickerSetEmojiDefaultTopicIcons#44c1f8e9`.
// Default custom emoji¹ stickerset for forum topic icons²
//
// Links:
//  1. https://core.telegram.org/api/custom-emoji
//  2. https://core.telegram.org/api/forum#forum-topics
//
// See https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons for reference.
type InputStickerSetEmojiDefaultTopicIcons struct {
}

// InputStickerSetEmojiDefaultTopicIconsTypeID is TL type id of InputStickerSetEmojiDefaultTopicIcons.
const InputStickerSetEmojiDefaultTopicIconsTypeID = 0x44c1f8e9

// construct implements constructor of InputStickerSetClass.
func ( InputStickerSetEmojiDefaultTopicIcons) () InputStickerSetClass { return & }

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

	_ InputStickerSetClass = &InputStickerSetEmojiDefaultTopicIcons{}
)

func ( *InputStickerSetEmojiDefaultTopicIcons) () bool {
	if  == nil {
		return true
	}

	return true
}

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

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

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

// TypeInfo returns info about TL type.
func ( *InputStickerSetEmojiDefaultTopicIcons) () tdp.Type {
	 := tdp.Type{
		Name: "inputStickerSetEmojiDefaultTopicIcons",
		ID:   InputStickerSetEmojiDefaultTopicIconsTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{}
	return 
}

// Encode implements bin.Encoder.
func ( *InputStickerSetEmojiDefaultTopicIcons) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetEmojiDefaultTopicIcons#44c1f8e9 as nil")
	}
	.PutID(InputStickerSetEmojiDefaultTopicIconsTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *InputStickerSetEmojiDefaultTopicIcons) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetEmojiDefaultTopicIcons#44c1f8e9 as nil")
	}
	return nil
}

// Decode implements bin.Decoder.
func ( *InputStickerSetEmojiDefaultTopicIcons) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetEmojiDefaultTopicIcons#44c1f8e9 to nil")
	}
	if  := .ConsumeID(InputStickerSetEmojiDefaultTopicIconsTypeID);  != nil {
		return fmt.Errorf("unable to decode inputStickerSetEmojiDefaultTopicIcons#44c1f8e9: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *InputStickerSetEmojiDefaultTopicIcons) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetEmojiDefaultTopicIcons#44c1f8e9 to nil")
	}
	return nil
}

// InputStickerSetEmojiChannelDefaultStatuses represents TL type `inputStickerSetEmojiChannelDefaultStatuses#49748553`.
//
// See https://core.telegram.org/constructor/inputStickerSetEmojiChannelDefaultStatuses for reference.
type InputStickerSetEmojiChannelDefaultStatuses struct {
}

// InputStickerSetEmojiChannelDefaultStatusesTypeID is TL type id of InputStickerSetEmojiChannelDefaultStatuses.
const InputStickerSetEmojiChannelDefaultStatusesTypeID = 0x49748553

// construct implements constructor of InputStickerSetClass.
func ( InputStickerSetEmojiChannelDefaultStatuses) () InputStickerSetClass { return & }

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

	_ InputStickerSetClass = &InputStickerSetEmojiChannelDefaultStatuses{}
)

func ( *InputStickerSetEmojiChannelDefaultStatuses) () bool {
	if  == nil {
		return true
	}

	return true
}

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

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

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

// TypeInfo returns info about TL type.
func ( *InputStickerSetEmojiChannelDefaultStatuses) () tdp.Type {
	 := tdp.Type{
		Name: "inputStickerSetEmojiChannelDefaultStatuses",
		ID:   InputStickerSetEmojiChannelDefaultStatusesTypeID,
	}
	if  == nil {
		.Null = true
		return 
	}
	.Fields = []tdp.Field{}
	return 
}

// Encode implements bin.Encoder.
func ( *InputStickerSetEmojiChannelDefaultStatuses) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetEmojiChannelDefaultStatuses#49748553 as nil")
	}
	.PutID(InputStickerSetEmojiChannelDefaultStatusesTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *InputStickerSetEmojiChannelDefaultStatuses) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode inputStickerSetEmojiChannelDefaultStatuses#49748553 as nil")
	}
	return nil
}

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

// DecodeBare implements bin.BareDecoder.
func ( *InputStickerSetEmojiChannelDefaultStatuses) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode inputStickerSetEmojiChannelDefaultStatuses#49748553 to nil")
	}
	return nil
}

// InputStickerSetClassName is schema name of InputStickerSetClass.
const InputStickerSetClassName = "InputStickerSet"

// InputStickerSetClass represents InputStickerSet generic type.
//
// See https://core.telegram.org/type/InputStickerSet for reference.
//
// Example:
//
//	g, err := tg.DecodeInputStickerSet(buf)
//	if err != nil {
//	    panic(err)
//	}
//	switch v := g.(type) {
//	case *tg.InputStickerSetEmpty: // inputStickerSetEmpty#ffb62b95
//	case *tg.InputStickerSetID: // inputStickerSetID#9de7a269
//	case *tg.InputStickerSetShortName: // inputStickerSetShortName#861cc8a0
//	case *tg.InputStickerSetAnimatedEmoji: // inputStickerSetAnimatedEmoji#28703c8
//	case *tg.InputStickerSetDice: // inputStickerSetDice#e67f520e
//	case *tg.InputStickerSetAnimatedEmojiAnimations: // inputStickerSetAnimatedEmojiAnimations#cde3739
//	case *tg.InputStickerSetPremiumGifts: // inputStickerSetPremiumGifts#c88b3b02
//	case *tg.InputStickerSetEmojiGenericAnimations: // inputStickerSetEmojiGenericAnimations#4c4d4ce
//	case *tg.InputStickerSetEmojiDefaultStatuses: // inputStickerSetEmojiDefaultStatuses#29d0f5ee
//	case *tg.InputStickerSetEmojiDefaultTopicIcons: // inputStickerSetEmojiDefaultTopicIcons#44c1f8e9
//	case *tg.InputStickerSetEmojiChannelDefaultStatuses: // inputStickerSetEmojiChannelDefaultStatuses#49748553
//	default: panic(v)
//	}
type InputStickerSetClass interface {
	bin.Encoder
	bin.Decoder
	bin.BareEncoder
	bin.BareDecoder
	construct() InputStickerSetClass

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

// DecodeInputStickerSet implements binary de-serialization for InputStickerSetClass.
func ( *bin.Buffer) (InputStickerSetClass, error) {
	,  := .PeekID()
	if  != nil {
		return nil, 
	}
	switch  {
	case InputStickerSetEmptyTypeID:
		// Decoding inputStickerSetEmpty#ffb62b95.
		 := InputStickerSetEmpty{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode InputStickerSetClass: %w", )
		}
		return &, nil
	case InputStickerSetIDTypeID:
		// Decoding inputStickerSetID#9de7a269.
		 := InputStickerSetID{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode InputStickerSetClass: %w", )
		}
		return &, nil
	case InputStickerSetShortNameTypeID:
		// Decoding inputStickerSetShortName#861cc8a0.
		 := InputStickerSetShortName{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode InputStickerSetClass: %w", )
		}
		return &, nil
	case InputStickerSetAnimatedEmojiTypeID:
		// Decoding inputStickerSetAnimatedEmoji#28703c8.
		 := InputStickerSetAnimatedEmoji{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode InputStickerSetClass: %w", )
		}
		return &, nil
	case InputStickerSetDiceTypeID:
		// Decoding inputStickerSetDice#e67f520e.
		 := InputStickerSetDice{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode InputStickerSetClass: %w", )
		}
		return &, nil
	case InputStickerSetAnimatedEmojiAnimationsTypeID:
		// Decoding inputStickerSetAnimatedEmojiAnimations#cde3739.
		 := InputStickerSetAnimatedEmojiAnimations{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode InputStickerSetClass: %w", )
		}
		return &, nil
	case InputStickerSetPremiumGiftsTypeID:
		// Decoding inputStickerSetPremiumGifts#c88b3b02.
		 := InputStickerSetPremiumGifts{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode InputStickerSetClass: %w", )
		}
		return &, nil
	case InputStickerSetEmojiGenericAnimationsTypeID:
		// Decoding inputStickerSetEmojiGenericAnimations#4c4d4ce.
		 := InputStickerSetEmojiGenericAnimations{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode InputStickerSetClass: %w", )
		}
		return &, nil
	case InputStickerSetEmojiDefaultStatusesTypeID:
		// Decoding inputStickerSetEmojiDefaultStatuses#29d0f5ee.
		 := InputStickerSetEmojiDefaultStatuses{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode InputStickerSetClass: %w", )
		}
		return &, nil
	case InputStickerSetEmojiDefaultTopicIconsTypeID:
		// Decoding inputStickerSetEmojiDefaultTopicIcons#44c1f8e9.
		 := InputStickerSetEmojiDefaultTopicIcons{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode InputStickerSetClass: %w", )
		}
		return &, nil
	case InputStickerSetEmojiChannelDefaultStatusesTypeID:
		// Decoding inputStickerSetEmojiChannelDefaultStatuses#49748553.
		 := InputStickerSetEmojiChannelDefaultStatuses{}
		if  := .Decode();  != nil {
			return nil, fmt.Errorf("unable to decode InputStickerSetClass: %w", )
		}
		return &, nil
	default:
		return nil, fmt.Errorf("unable to decode InputStickerSetClass: %w", bin.NewUnexpectedID())
	}
}

// InputStickerSet boxes the InputStickerSetClass providing a helper.
type InputStickerSetBox struct {
	InputStickerSet InputStickerSetClass
}

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

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