Source File
tl_test_use_config_simple_gen.go
Belonging Package
github.com/gotd/td/tg
// 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{}
)
// TestUseConfigSimpleRequest represents TL type `test.useConfigSimple#f9b7b23d`.
//
// See https://core.telegram.org/method/test.useConfigSimple for reference.
type TestUseConfigSimpleRequest struct {
}
// TestUseConfigSimpleRequestTypeID is TL type id of TestUseConfigSimpleRequest.
const TestUseConfigSimpleRequestTypeID = 0xf9b7b23d
// Ensuring interfaces in compile-time for TestUseConfigSimpleRequest.
var (
_ bin.Encoder = &TestUseConfigSimpleRequest{}
_ bin.Decoder = &TestUseConfigSimpleRequest{}
_ bin.BareEncoder = &TestUseConfigSimpleRequest{}
_ bin.BareDecoder = &TestUseConfigSimpleRequest{}
)
func ( *TestUseConfigSimpleRequest) () bool {
if == nil {
return true
}
return true
}
// String implements fmt.Stringer.
func ( *TestUseConfigSimpleRequest) () string {
if == nil {
return "TestUseConfigSimpleRequest(nil)"
}
type TestUseConfigSimpleRequest
return fmt.Sprintf("TestUseConfigSimpleRequest%+v", (*))
}
// TypeID returns type id in TL schema.
//
// See https://core.telegram.org/mtproto/TL-tl#remarks.
func (*TestUseConfigSimpleRequest) () uint32 {
return TestUseConfigSimpleRequestTypeID
}
// TypeName returns name of type in TL schema.
func (*TestUseConfigSimpleRequest) () string {
return "test.useConfigSimple"
}
// TypeInfo returns info about TL type.
func ( *TestUseConfigSimpleRequest) () tdp.Type {
:= tdp.Type{
Name: "test.useConfigSimple",
ID: TestUseConfigSimpleRequestTypeID,
}
if == nil {
.Null = true
return
}
.Fields = []tdp.Field{}
return
}
// Encode implements bin.Encoder.
func ( *TestUseConfigSimpleRequest) ( *bin.Buffer) error {
if == nil {
return fmt.Errorf("can't encode test.useConfigSimple#f9b7b23d as nil")
}
.PutID(TestUseConfigSimpleRequestTypeID)
return .EncodeBare()
}
// EncodeBare implements bin.BareEncoder.
func ( *TestUseConfigSimpleRequest) ( *bin.Buffer) error {
if == nil {
return fmt.Errorf("can't encode test.useConfigSimple#f9b7b23d as nil")
}
return nil
}
// Decode implements bin.Decoder.
func ( *TestUseConfigSimpleRequest) ( *bin.Buffer) error {
if == nil {
return fmt.Errorf("can't decode test.useConfigSimple#f9b7b23d to nil")
}
if := .ConsumeID(TestUseConfigSimpleRequestTypeID); != nil {
return fmt.Errorf("unable to decode test.useConfigSimple#f9b7b23d: %w", )
}
return .DecodeBare()
}
// DecodeBare implements bin.BareDecoder.
func ( *TestUseConfigSimpleRequest) ( *bin.Buffer) error {
if == nil {
return fmt.Errorf("can't decode test.useConfigSimple#f9b7b23d to nil")
}
return nil
}
// TestUseConfigSimple invokes method test.useConfigSimple#f9b7b23d returning error if any.
//
// See https://core.telegram.org/method/test.useConfigSimple for reference.
func ( *Client) ( context.Context) (*HelpConfigSimple, error) {
var HelpConfigSimple
:= &TestUseConfigSimpleRequest{}
if := .rpc.Invoke(, , &); != nil {
return nil,
}
return &, nil
}
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |