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

// HelpGetSupportNameRequest represents TL type `help.getSupportName#d360e72c`.
// Get localized name of the telegram support user
//
// See https://core.telegram.org/method/help.getSupportName for reference.
type HelpGetSupportNameRequest struct {
}

// HelpGetSupportNameRequestTypeID is TL type id of HelpGetSupportNameRequest.
const HelpGetSupportNameRequestTypeID = 0xd360e72c

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

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

	return true
}

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

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

// TypeName returns name of type in TL schema.
func (*HelpGetSupportNameRequest) () string {
	return "help.getSupportName"
}

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

// Encode implements bin.Encoder.
func ( *HelpGetSupportNameRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode help.getSupportName#d360e72c as nil")
	}
	.PutID(HelpGetSupportNameRequestTypeID)
	return .EncodeBare()
}

// EncodeBare implements bin.BareEncoder.
func ( *HelpGetSupportNameRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode help.getSupportName#d360e72c as nil")
	}
	return nil
}

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

// DecodeBare implements bin.BareDecoder.
func ( *HelpGetSupportNameRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't decode help.getSupportName#d360e72c to nil")
	}
	return nil
}

// HelpGetSupportName invokes method help.getSupportName#d360e72c returning error if any.
// Get localized name of the telegram support user
//
// Possible errors:
//
//	403 USER_INVALID: Invalid user provided.
//
// See https://core.telegram.org/method/help.getSupportName for reference.
func ( *Client) ( context.Context) (*HelpSupportName, error) {
	var  HelpSupportName

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