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

// HelpGetSupportRequest represents TL type `help.getSupport#9cdf08cd`.
// Returns the support user for the "ask a question" feature.
//
// See https://core.telegram.org/method/help.getSupport for reference.
type HelpGetSupportRequest struct {
}

// HelpGetSupportRequestTypeID is TL type id of HelpGetSupportRequest.
const HelpGetSupportRequestTypeID = 0x9cdf08cd

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

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

	return true
}

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

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

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

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

// Encode implements bin.Encoder.
func ( *HelpGetSupportRequest) ( *bin.Buffer) error {
	if  == nil {
		return fmt.Errorf("can't encode help.getSupport#9cdf08cd as nil")
	}
	.PutID(HelpGetSupportRequestTypeID)
	return .EncodeBare()
}

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

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

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

// HelpGetSupport invokes method help.getSupport#9cdf08cd returning error if any.
// Returns the support user for the "ask a question" feature.
//
// See https://core.telegram.org/method/help.getSupport for reference.
func ( *Client) ( context.Context) (*HelpSupport, error) {
	var  HelpSupport

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