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

// AccountDeleteAutoSaveExceptionsRequest represents TL type `account.deleteAutoSaveExceptions#53bc0020`.
// Clear all peer-specific autosave settings.
//
// See https://core.telegram.org/method/account.deleteAutoSaveExceptions for reference.
type AccountDeleteAutoSaveExceptionsRequest struct {
}

// AccountDeleteAutoSaveExceptionsRequestTypeID is TL type id of AccountDeleteAutoSaveExceptionsRequest.
const AccountDeleteAutoSaveExceptionsRequestTypeID = 0x53bc0020

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

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

	return true
}

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

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

// TypeName returns name of type in TL schema.
func (*AccountDeleteAutoSaveExceptionsRequest) () string {
	return "account.deleteAutoSaveExceptions"
}

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

// Encode implements bin.Encoder.
func ( *AccountDeleteAutoSaveExceptionsRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode account.deleteAutoSaveExceptions#53bc0020 as nil")
	}
	.PutID(AccountDeleteAutoSaveExceptionsRequestTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *AccountDeleteAutoSaveExceptionsRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode account.deleteAutoSaveExceptions#53bc0020 as nil")
	}
	return nil
}

// Decode implements bin.Decoder.
func ( *AccountDeleteAutoSaveExceptionsRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode account.deleteAutoSaveExceptions#53bc0020 to nil")
	}
	if  := .ConsumeID(AccountDeleteAutoSaveExceptionsRequestTypeID);  != nil {
		return fmt.Errorf("unable to decode account.deleteAutoSaveExceptions#53bc0020: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *AccountDeleteAutoSaveExceptionsRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode account.deleteAutoSaveExceptions#53bc0020 to nil")
	}
	return nil
}

// AccountDeleteAutoSaveExceptions invokes method account.deleteAutoSaveExceptions#53bc0020 returning error if any.
// Clear all peer-specific autosave settings.
//
// See https://core.telegram.org/method/account.deleteAutoSaveExceptions for reference.
func ( *Client) ( context.Context) (bool, error) {
	var  BoolBox

	 := &AccountDeleteAutoSaveExceptionsRequest{}
	if  := .rpc.Invoke(, , &);  != nil {
		return false, 
	}
	,  := .Bool.(*BoolTrue)
	return , nil
}