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

// AccountGetContentSettingsRequest represents TL type `account.getContentSettings#8b9b4dae`.
// Get sensitive content settings
//
// See https://core.telegram.org/method/account.getContentSettings for reference.
type AccountGetContentSettingsRequest struct {
}

// AccountGetContentSettingsRequestTypeID is TL type id of AccountGetContentSettingsRequest.
const AccountGetContentSettingsRequestTypeID = 0x8b9b4dae

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

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

	return true
}

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

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

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

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

// Encode implements bin.Encoder.
func ( *AccountGetContentSettingsRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode account.getContentSettings#8b9b4dae as nil")
	}
	.PutID(AccountGetContentSettingsRequestTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *AccountGetContentSettingsRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode account.getContentSettings#8b9b4dae as nil")
	}
	return nil
}

// Decode implements bin.Decoder.
func ( *AccountGetContentSettingsRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode account.getContentSettings#8b9b4dae to nil")
	}
	if  := .ConsumeID(AccountGetContentSettingsRequestTypeID);  != nil {
		return fmt.Errorf("unable to decode account.getContentSettings#8b9b4dae: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *AccountGetContentSettingsRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode account.getContentSettings#8b9b4dae to nil")
	}
	return nil
}

// AccountGetContentSettings invokes method account.getContentSettings#8b9b4dae returning error if any.
// Get sensitive content settings
//
// See https://core.telegram.org/method/account.getContentSettings for reference.
func ( *Client) ( context.Context) (*AccountContentSettings, error) {
	var  AccountContentSettings

	 := &AccountGetContentSettingsRequest{}
	if  := .rpc.Invoke(, , &);  != nil {
		return nil, 
	}
	return &, nil
}