Source File
tl_phone_get_call_config_gen.go
Belonging Package
github.com/gotd/td/tg
// Code generated by gotdgen, DO NOT EDIT.package tgimport ()// 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{})// PhoneGetCallConfigRequest represents TL type `phone.getCallConfig#55451fa9`.// Get phone call configuration to be passed to libtgvoip's shared config//// See https://core.telegram.org/method/phone.getCallConfig for reference.type PhoneGetCallConfigRequest struct {}// PhoneGetCallConfigRequestTypeID is TL type id of PhoneGetCallConfigRequest.const PhoneGetCallConfigRequestTypeID = 0x55451fa9// Ensuring interfaces in compile-time for PhoneGetCallConfigRequest.var (_ bin.Encoder = &PhoneGetCallConfigRequest{}_ bin.Decoder = &PhoneGetCallConfigRequest{}_ bin.BareEncoder = &PhoneGetCallConfigRequest{}_ bin.BareDecoder = &PhoneGetCallConfigRequest{})func ( *PhoneGetCallConfigRequest) () bool {if == nil {return true}return true}// String implements fmt.Stringer.func ( *PhoneGetCallConfigRequest) () string {if == nil {return "PhoneGetCallConfigRequest(nil)"}type PhoneGetCallConfigRequestreturn fmt.Sprintf("PhoneGetCallConfigRequest%+v", (*))}// TypeID returns type id in TL schema.//// See https://core.telegram.org/mtproto/TL-tl#remarks.func (*PhoneGetCallConfigRequest) () uint32 {return PhoneGetCallConfigRequestTypeID}// TypeName returns name of type in TL schema.func (*PhoneGetCallConfigRequest) () string {return "phone.getCallConfig"}// TypeInfo returns info about TL type.func ( *PhoneGetCallConfigRequest) () tdp.Type {:= tdp.Type{Name: "phone.getCallConfig",ID: PhoneGetCallConfigRequestTypeID,}if == nil {.Null = truereturn}.Fields = []tdp.Field{}return}// Encode implements bin.Encoder.func ( *PhoneGetCallConfigRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode phone.getCallConfig#55451fa9 as nil")}.PutID(PhoneGetCallConfigRequestTypeID)return .EncodeBare()}// EncodeBare implements bin.BareEncoder.func ( *PhoneGetCallConfigRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode phone.getCallConfig#55451fa9 as nil")}return nil}// Decode implements bin.Decoder.func ( *PhoneGetCallConfigRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode phone.getCallConfig#55451fa9 to nil")}if := .ConsumeID(PhoneGetCallConfigRequestTypeID); != nil {return fmt.Errorf("unable to decode phone.getCallConfig#55451fa9: %w", )}return .DecodeBare()}// DecodeBare implements bin.BareDecoder.func ( *PhoneGetCallConfigRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode phone.getCallConfig#55451fa9 to nil")}return nil}// PhoneGetCallConfig invokes method phone.getCallConfig#55451fa9 returning error if any.// Get phone call configuration to be passed to libtgvoip's shared config//// See https://core.telegram.org/method/phone.getCallConfig for reference.func ( *Client) ( context.Context) (*DataJSON, error) {var DataJSON:= &PhoneGetCallConfigRequest{}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. |