package  tgimport  (	"context" 	"errors" 	"fmt" 	"sort" 	"strings" 	"go.uber.org/multierr" 	"github.com/gotd/td/bin" 	"github.com/gotd/td/tdjson" 	"github.com/gotd/td/tdp" 	"github.com/gotd/td/tgerr" )var  (	_ = bin .Buffer {}	_ = context .Background ()	_ = fmt .Stringer (nil )	_ = strings .Builder {}	_ = errors .Is 	_ = multierr .AppendInto 	_ = sort .Ints 	_ = tdp .Format 	_ = tgerr .Error {}	_ = tdjson .Encoder {})type  PhoneLeaveGroupCallPresentationRequest  struct  {		Call  InputGroupCall }const  PhoneLeaveGroupCallPresentationRequestTypeID  = 0x1c50d144 var  (	_ bin .Encoder      = &PhoneLeaveGroupCallPresentationRequest {}	_ bin .Decoder      = &PhoneLeaveGroupCallPresentationRequest {}	_ bin .BareEncoder  = &PhoneLeaveGroupCallPresentationRequest {}	_ bin .BareDecoder  = &PhoneLeaveGroupCallPresentationRequest {})func  (l  *PhoneLeaveGroupCallPresentationRequest ) Zero bool  {	if  l  == nil  {		return  true 	}	if  !(l .Call .Zero ()) {		return  false 	}	return  true }func  (l  *PhoneLeaveGroupCallPresentationRequest ) String string  {	if  l  == nil  {		return  "PhoneLeaveGroupCallPresentationRequest(nil)" 	}	type  Alias  PhoneLeaveGroupCallPresentationRequest 	return  fmt .Sprintf ("PhoneLeaveGroupCallPresentationRequest%+v" , Alias (*l ))}func  (l  *PhoneLeaveGroupCallPresentationRequest ) FillFrom from  interface  {	GetCall () (value  InputGroupCall )}) {	l .Call  = from .GetCall ()}func  (*PhoneLeaveGroupCallPresentationRequest ) TypeID uint32  {	return  PhoneLeaveGroupCallPresentationRequestTypeID }func  (*PhoneLeaveGroupCallPresentationRequest ) TypeName string  {	return  "phone.leaveGroupCallPresentation" }func  (l  *PhoneLeaveGroupCallPresentationRequest ) TypeInfo tdp .Type  {	typ  := tdp .Type {		Name : "phone.leaveGroupCallPresentation" ,		ID :   PhoneLeaveGroupCallPresentationRequestTypeID ,	}	if  l  == nil  {		typ .Null  = true 		return  typ 	}	typ .Fields  = []tdp .Field {		{			Name :       "Call" ,			SchemaName : "call" ,		},	}	return  typ }func  (l  *PhoneLeaveGroupCallPresentationRequest ) Encode b  *bin .Buffer ) error  {	if  l  == nil  {		return  fmt .Errorf ("can't encode phone.leaveGroupCallPresentation#1c50d144 as nil" )	}	b .PutID (PhoneLeaveGroupCallPresentationRequestTypeID )	return  l .EncodeBare (b )}func  (l  *PhoneLeaveGroupCallPresentationRequest ) EncodeBare b  *bin .Buffer ) error  {	if  l  == nil  {		return  fmt .Errorf ("can't encode phone.leaveGroupCallPresentation#1c50d144 as nil" )	}	if  err  := l .Call .Encode (b ); err  != nil  {		return  fmt .Errorf ("unable to encode phone.leaveGroupCallPresentation#1c50d144: field call: %w" , err )	}	return  nil }func  (l  *PhoneLeaveGroupCallPresentationRequest ) Decode b  *bin .Buffer ) error  {	if  l  == nil  {		return  fmt .Errorf ("can't decode phone.leaveGroupCallPresentation#1c50d144 to nil" )	}	if  err  := b .ConsumeID (PhoneLeaveGroupCallPresentationRequestTypeID ); err  != nil  {		return  fmt .Errorf ("unable to decode phone.leaveGroupCallPresentation#1c50d144: %w" , err )	}	return  l .DecodeBare (b )}func  (l  *PhoneLeaveGroupCallPresentationRequest ) DecodeBare b  *bin .Buffer ) error  {	if  l  == nil  {		return  fmt .Errorf ("can't decode phone.leaveGroupCallPresentation#1c50d144 to nil" )	}	{		if  err  := l .Call .Decode (b ); err  != nil  {			return  fmt .Errorf ("unable to decode phone.leaveGroupCallPresentation#1c50d144: field call: %w" , err )		}	}	return  nil }func  (l  *PhoneLeaveGroupCallPresentationRequest ) GetCall value  InputGroupCall ) {	if  l  == nil  {		return 	}	return  l .Call }func  (c  *Client ) PhoneLeaveGroupCallPresentation ctx  context .Context , call  InputGroupCall ) (UpdatesClass , error ) {	var  result  UpdatesBox 	request  := &PhoneLeaveGroupCallPresentationRequest {		Call : call ,	}	if  err  := c .rpc .Invoke (ctx , request , &result ); err  != nil  {		return  nil , err 	}	return  result .Updates , 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 .