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

// AccountClearRecentEmojiStatusesRequest represents TL type `account.clearRecentEmojiStatuses#18201aae`.
// Clears list of recently used emoji statuses¹
//
// Links:
//  1. https://core.telegram.org/api/emoji-status
//
// See https://core.telegram.org/method/account.clearRecentEmojiStatuses for reference.
type AccountClearRecentEmojiStatusesRequest struct {
}

// AccountClearRecentEmojiStatusesRequestTypeID is TL type id of AccountClearRecentEmojiStatusesRequest.
const AccountClearRecentEmojiStatusesRequestTypeID = 0x18201aae

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

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

	return true
}

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

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

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

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

// Encode implements bin.Encoder.
func ( *AccountClearRecentEmojiStatusesRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode account.clearRecentEmojiStatuses#18201aae as nil")
	}
	.PutID(AccountClearRecentEmojiStatusesRequestTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *AccountClearRecentEmojiStatusesRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode account.clearRecentEmojiStatuses#18201aae as nil")
	}
	return nil
}

// Decode implements bin.Decoder.
func ( *AccountClearRecentEmojiStatusesRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode account.clearRecentEmojiStatuses#18201aae to nil")
	}
	if  := .ConsumeID(AccountClearRecentEmojiStatusesRequestTypeID);  != nil {
		return fmt.Errorf("unable to decode account.clearRecentEmojiStatuses#18201aae: %w", )
	}
	return .DecodeBare()
}

// DecodeBare implements bin.BareDecoder.
func ( *AccountClearRecentEmojiStatusesRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode account.clearRecentEmojiStatuses#18201aae to nil")
	}
	return nil
}

// AccountClearRecentEmojiStatuses invokes method account.clearRecentEmojiStatuses#18201aae returning error if any.
// Clears list of recently used emoji statuses¹
//
// Links:
//  1. https://core.telegram.org/api/emoji-status
//
// See https://core.telegram.org/method/account.clearRecentEmojiStatuses for reference.
func ( *Client) ( context.Context) (bool, error) {
	var  BoolBox

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