package tg
import (
"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 AccountDeleteAutoSaveExceptionsRequest struct {
}
const AccountDeleteAutoSaveExceptionsRequestTypeID = 0x53bc0020
var (
_ bin .Encoder = &AccountDeleteAutoSaveExceptionsRequest {}
_ bin .Decoder = &AccountDeleteAutoSaveExceptionsRequest {}
_ bin .BareEncoder = &AccountDeleteAutoSaveExceptionsRequest {}
_ bin .BareDecoder = &AccountDeleteAutoSaveExceptionsRequest {}
)
func (d *AccountDeleteAutoSaveExceptionsRequest ) Zero () bool {
if d == nil {
return true
}
return true
}
func (d *AccountDeleteAutoSaveExceptionsRequest ) String () string {
if d == nil {
return "AccountDeleteAutoSaveExceptionsRequest(nil)"
}
type Alias AccountDeleteAutoSaveExceptionsRequest
return fmt .Sprintf ("AccountDeleteAutoSaveExceptionsRequest%+v" , Alias (*d ))
}
func (*AccountDeleteAutoSaveExceptionsRequest ) TypeID () uint32 {
return AccountDeleteAutoSaveExceptionsRequestTypeID
}
func (*AccountDeleteAutoSaveExceptionsRequest ) TypeName () string {
return "account.deleteAutoSaveExceptions"
}
func (d *AccountDeleteAutoSaveExceptionsRequest ) TypeInfo () tdp .Type {
typ := tdp .Type {
Name : "account.deleteAutoSaveExceptions" ,
ID : AccountDeleteAutoSaveExceptionsRequestTypeID ,
}
if d == nil {
typ .Null = true
return typ
}
typ .Fields = []tdp .Field {}
return typ
}
func (d *AccountDeleteAutoSaveExceptionsRequest ) Encode (b *bin .Buffer ) error {
if d == nil {
return fmt .Errorf ("can't encode account.deleteAutoSaveExceptions#53bc0020 as nil" )
}
b .PutID (AccountDeleteAutoSaveExceptionsRequestTypeID )
return d .EncodeBare (b )
}
func (d *AccountDeleteAutoSaveExceptionsRequest ) EncodeBare (b *bin .Buffer ) error {
if d == nil {
return fmt .Errorf ("can't encode account.deleteAutoSaveExceptions#53bc0020 as nil" )
}
return nil
}
func (d *AccountDeleteAutoSaveExceptionsRequest ) Decode (b *bin .Buffer ) error {
if d == nil {
return fmt .Errorf ("can't decode account.deleteAutoSaveExceptions#53bc0020 to nil" )
}
if err := b .ConsumeID (AccountDeleteAutoSaveExceptionsRequestTypeID ); err != nil {
return fmt .Errorf ("unable to decode account.deleteAutoSaveExceptions#53bc0020: %w" , err )
}
return d .DecodeBare (b )
}
func (d *AccountDeleteAutoSaveExceptionsRequest ) DecodeBare (b *bin .Buffer ) error {
if d == nil {
return fmt .Errorf ("can't decode account.deleteAutoSaveExceptions#53bc0020 to nil" )
}
return nil
}
func (c *Client ) AccountDeleteAutoSaveExceptions (ctx context .Context ) (bool , error ) {
var result BoolBox
request := &AccountDeleteAutoSaveExceptionsRequest {}
if err := c .rpc .Invoke (ctx , request , &result ); err != nil {
return false , err
}
_ , ok := result .Bool .(*BoolTrue )
return ok , 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 .