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 AccountGetContactSignUpNotificationRequest struct {
}
const AccountGetContactSignUpNotificationRequestTypeID = 0x9f07c728
var (
_ bin .Encoder = &AccountGetContactSignUpNotificationRequest {}
_ bin .Decoder = &AccountGetContactSignUpNotificationRequest {}
_ bin .BareEncoder = &AccountGetContactSignUpNotificationRequest {}
_ bin .BareDecoder = &AccountGetContactSignUpNotificationRequest {}
)
func (g *AccountGetContactSignUpNotificationRequest ) Zero () bool {
if g == nil {
return true
}
return true
}
func (g *AccountGetContactSignUpNotificationRequest ) String () string {
if g == nil {
return "AccountGetContactSignUpNotificationRequest(nil)"
}
type Alias AccountGetContactSignUpNotificationRequest
return fmt .Sprintf ("AccountGetContactSignUpNotificationRequest%+v" , Alias (*g ))
}
func (*AccountGetContactSignUpNotificationRequest ) TypeID () uint32 {
return AccountGetContactSignUpNotificationRequestTypeID
}
func (*AccountGetContactSignUpNotificationRequest ) TypeName () string {
return "account.getContactSignUpNotification"
}
func (g *AccountGetContactSignUpNotificationRequest ) TypeInfo () tdp .Type {
typ := tdp .Type {
Name : "account.getContactSignUpNotification" ,
ID : AccountGetContactSignUpNotificationRequestTypeID ,
}
if g == nil {
typ .Null = true
return typ
}
typ .Fields = []tdp .Field {}
return typ
}
func (g *AccountGetContactSignUpNotificationRequest ) Encode (b *bin .Buffer ) error {
if g == nil {
return fmt .Errorf ("can't encode account.getContactSignUpNotification#9f07c728 as nil" )
}
b .PutID (AccountGetContactSignUpNotificationRequestTypeID )
return g .EncodeBare (b )
}
func (g *AccountGetContactSignUpNotificationRequest ) EncodeBare (b *bin .Buffer ) error {
if g == nil {
return fmt .Errorf ("can't encode account.getContactSignUpNotification#9f07c728 as nil" )
}
return nil
}
func (g *AccountGetContactSignUpNotificationRequest ) Decode (b *bin .Buffer ) error {
if g == nil {
return fmt .Errorf ("can't decode account.getContactSignUpNotification#9f07c728 to nil" )
}
if err := b .ConsumeID (AccountGetContactSignUpNotificationRequestTypeID ); err != nil {
return fmt .Errorf ("unable to decode account.getContactSignUpNotification#9f07c728: %w" , err )
}
return g .DecodeBare (b )
}
func (g *AccountGetContactSignUpNotificationRequest ) DecodeBare (b *bin .Buffer ) error {
if g == nil {
return fmt .Errorf ("can't decode account.getContactSignUpNotification#9f07c728 to nil" )
}
return nil
}
func (c *Client ) AccountGetContactSignUpNotification (ctx context .Context ) (bool , error ) {
var result BoolBox
request := &AccountGetContactSignUpNotificationRequest {}
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 .