package context

Import Path
	context (on go.dev)

Dependency Relation
	imports 5 packages, and imported by 26 packages

Involved Source Files Package context defines the Context type, which carries deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes. Incoming requests to a server should create a [Context], and outgoing calls to servers should accept a Context. The chain of function calls between them must propagate the Context, optionally replacing it with a derived Context created using [WithCancel], [WithDeadline], [WithTimeout], or [WithValue]. When a Context is canceled, all Contexts derived from it are also canceled. The [WithCancel], [WithDeadline], and [WithTimeout] functions take a Context (the parent) and return a derived Context (the child) and a [CancelFunc]. Calling the CancelFunc cancels the child and its children, removes the parent's reference to the child, and stops any associated timers. Failing to call the CancelFunc leaks the child and its children until the parent is canceled or the timer fires. The go vet tool checks that CancelFuncs are used on all control-flow paths. The [WithCancelCause] function returns a [CancelCauseFunc], which takes an error and records it as the cancellation cause. Calling [Cause] on the canceled context or any of its children retrieves the cause. If no cause is specified, Cause(ctx) returns the same value as ctx.Err(). Programs that use Contexts should follow these rules to keep interfaces consistent across packages and enable static analysis tools to check context propagation: Do not store Contexts inside a struct type; instead, pass a Context explicitly to each function that needs it. The Context should be the first parameter, typically named ctx: func DoSomething(ctx context.Context, arg Arg) error { // ... use ctx ... } Do not pass a nil [Context], even if a function permits it. Pass [context.TODO] if you are unsure about which Context to use. Use context Values only for request-scoped data that transits processes and APIs, not for passing optional parameters to functions. The same Context may be passed to functions running in different goroutines; Contexts are safe for simultaneous use by multiple goroutines. See https://blog.golang.org/context for example code for a server that uses Contexts.
Code Examples package main import ( "context" "fmt" "sync" "time" ) func main() { waitOnCond := func(ctx context.Context, cond *sync.Cond, conditionMet func() bool) error { stopf := context.AfterFunc(ctx, func() { // We need to acquire cond.L here to be sure that the Broadcast // below won't occur before the call to Wait, which would result // in a missed signal (and deadlock). cond.L.Lock() defer cond.L.Unlock() // If multiple goroutines are waiting on cond simultaneously, // we need to make sure we wake up exactly this one. // That means that we need to Broadcast to all of the goroutines, // which will wake them all up. // // If there are N concurrent calls to waitOnCond, each of the goroutines // will spuriously wake up O(N) other goroutines that aren't ready yet, // so this will cause the overall CPU cost to be O(N²). cond.Broadcast() }) defer stopf() // Since the wakeups are using Broadcast instead of Signal, this call to // Wait may unblock due to some other goroutine's context becoming done, // so to be sure that ctx is actually done we need to check it in a loop. for !conditionMet() { cond.Wait() if ctx.Err() != nil { return ctx.Err() } } return nil } cond := sync.NewCond(new(sync.Mutex)) var wg sync.WaitGroup for i := 0; i < 4; i++ { wg.Add(1) go func() { defer wg.Done() ctx, cancel := context.WithTimeout(context.Background(), 1*time.Millisecond) defer cancel() cond.L.Lock() defer cond.L.Unlock() err := waitOnCond(ctx, cond, func() bool { return false }) fmt.Println(err) }() } wg.Wait() } package main import ( "context" "fmt" "net" "time" ) func main() { readFromConn := func(ctx context.Context, conn net.Conn, b []byte) (n int, err error) { stopc := make(chan struct{}) stop := context.AfterFunc(ctx, func() { conn.SetReadDeadline(time.Now()) close(stopc) }) n, err = conn.Read(b) if !stop() { // The AfterFunc was started. // Wait for it to complete, and reset the Conn's deadline. <-stopc conn.SetReadDeadline(time.Time{}) return n, ctx.Err() } return n, err } listener, err := net.Listen("tcp", ":0") if err != nil { fmt.Println(err) return } defer listener.Close() conn, err := net.Dial(listener.Addr().Network(), listener.Addr().String()) if err != nil { fmt.Println(err) return } defer conn.Close() ctx, cancel := context.WithTimeout(context.Background(), 1*time.Millisecond) defer cancel() b := make([]byte, 1024) _, err = readFromConn(ctx, conn, b) fmt.Println(err) } package main import ( "context" "errors" "fmt" ) func main() { // mergeCancel returns a context that contains the values of ctx, // and which is canceled when either ctx or cancelCtx is canceled. mergeCancel := func(ctx, cancelCtx context.Context) (context.Context, context.CancelFunc) { ctx, cancel := context.WithCancelCause(ctx) stop := context.AfterFunc(cancelCtx, func() { cancel(context.Cause(cancelCtx)) }) return ctx, func() { stop() cancel(context.Canceled) } } ctx1, cancel1 := context.WithCancelCause(context.Background()) defer cancel1(errors.New("ctx1 canceled")) ctx2, cancel2 := context.WithCancelCause(context.Background()) mergedCtx, mergedCancel := mergeCancel(ctx1, ctx2) defer mergedCancel() cancel2(errors.New("ctx2 canceled")) <-mergedCtx.Done() fmt.Println(context.Cause(mergedCtx)) } package main import ( "context" "fmt" ) func main() { // gen generates integers in a separate goroutine and // sends them to the returned channel. // The callers of gen need to cancel the context once // they are done consuming generated integers not to leak // the internal goroutine started by gen. gen := func(ctx context.Context) <-chan int { dst := make(chan int) n := 1 go func() { for { select { case <-ctx.Done(): return // returning not to leak the goroutine case dst <- n: n++ } } }() return dst } ctx, cancel := context.WithCancel(context.Background()) defer cancel() // cancel when we are finished consuming integers for n := range gen(ctx) { fmt.Println(n) if n == 5 { break } } } { d := time.Now().Add(shortDuration) ctx, cancel := context.WithDeadline(context.Background(), d) defer cancel() select { case <-neverReady: fmt.Println("ready") case <-ctx.Done(): fmt.Println(ctx.Err()) } } { ctx, cancel := context.WithTimeout(context.Background(), shortDuration) defer cancel() select { case <-neverReady: fmt.Println("ready") case <-ctx.Done(): fmt.Println(ctx.Err()) } } package main import ( "context" "fmt" ) func main() { type favContextKey string f := func(ctx context.Context, k favContextKey) { if v := ctx.Value(k); v != nil { fmt.Println("found value:", v) return } fmt.Println("key not found:", k) } k := favContextKey("language") ctx := context.WithValue(context.Background(), k, "Go") f(ctx, k) f(ctx, favContextKey("color")) }
Package-Level Type Names (total 16, in which 3 are exported)
/* sort exporteds by: | */
A CancelCauseFunc behaves like a [CancelFunc] but additionally sets the cancellation cause. This cause can be retrieved by calling [Cause] on the canceled Context or on any of its derived Contexts. If the context has already been canceled, CancelCauseFunc does not set the cause. For example, if childContext is derived from parentContext: - if parentContext is canceled with cause1 before childContext is canceled with cause2, then Cause(parentContext) == Cause(childContext) == cause1 - if childContext is canceled with cause2 before parentContext is canceled with cause1, then Cause(parentContext) == cause1 and Cause(childContext) == cause2 func WithCancelCause(parent Context) (ctx Context, cancel CancelCauseFunc)
A CancelFunc tells an operation to abandon its work. A CancelFunc does not wait for the work to stop. A CancelFunc may be called by multiple goroutines simultaneously. After the first call, subsequent calls to a CancelFunc do nothing. func WithCancel(parent Context) (ctx Context, cancel CancelFunc) func WithDeadline(parent Context, d time.Time) (Context, CancelFunc) func WithDeadlineCause(parent Context, d time.Time, cause error) (Context, CancelFunc) func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) func WithTimeoutCause(parent Context, timeout time.Duration, cause error) (Context, CancelFunc)
A Context carries a deadline, a cancellation signal, and other values across API boundaries. Context's methods may be called by multiple goroutines simultaneously. Deadline returns the time when work done on behalf of this context should be canceled. Deadline returns ok==false when no deadline is set. Successive calls to Deadline return the same results. Done returns a channel that's closed when work done on behalf of this context should be canceled. Done may return nil if this context can never be canceled. Successive calls to Done return the same value. The close of the Done channel may happen asynchronously, after the cancel function returns. WithCancel arranges for Done to be closed when cancel is called; WithDeadline arranges for Done to be closed when the deadline expires; WithTimeout arranges for Done to be closed when the timeout elapses. Done is provided for use in select statements: // Stream generates values with DoSomething and sends them to out // until DoSomething returns an error or ctx.Done is closed. func Stream(ctx context.Context, out chan<- Value) error { for { v, err := DoSomething(ctx) if err != nil { return err } select { case <-ctx.Done(): return ctx.Err() case out <- v: } } } See https://blog.golang.org/pipelines for more examples of how to use a Done channel for cancellation. If Done is not yet closed, Err returns nil. If Done is closed, Err returns a non-nil error explaining why: Canceled if the context was canceled or DeadlineExceeded if the context's deadline passed. After Err returns a non-nil error, successive calls to Err return the same error. Value returns the value associated with this context for key, or nil if no value is associated with key. Successive calls to Value with the same key returns the same result. Use context values only for request-scoped data that transits processes and API boundaries, not for passing optional parameters to functions. A key identifies a specific value in a Context. Functions that wish to store values in Context typically allocate a key in a global variable then use that key as the argument to context.WithValue and Context.Value. A key can be any type that supports equality; packages should define keys as an unexported type to avoid collisions. Packages that define a Context key should provide type-safe accessors for the values stored using that key: // Package user defines a User type that's stored in Contexts. package user import "context" // User is the type of value stored in the Contexts. type User struct {...} // key is an unexported type for keys defined in this package. // This prevents collisions with keys defined in other packages. type key int // userKey is the key for user.User values in Contexts. It is // unexported; clients use user.NewContext and user.FromContext // instead of using this key directly. var userKey key // NewContext returns a new Context that carries value u. func NewContext(ctx context.Context, u *User) context.Context { return context.WithValue(ctx, userKey, u) } // FromContext returns the User value stored in ctx, if any. func FromContext(ctx context.Context) (*User, bool) { u, ok := ctx.Value(userKey).(*User) return u, ok } func Background() Context func TODO() Context func WithCancel(parent Context) (ctx Context, cancel CancelFunc) func WithCancelCause(parent Context) (ctx Context, cancel CancelCauseFunc) func WithDeadline(parent Context, d time.Time) (Context, CancelFunc) func WithDeadlineCause(parent Context, d time.Time, cause error) (Context, CancelFunc) func WithoutCancel(parent Context) Context func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) func WithTimeoutCause(parent Context, timeout time.Duration, cause error) (Context, CancelFunc) func WithValue(parent Context, key, val any) Context func crypto/tls.(*CertificateRequestInfo).Context() Context func crypto/tls.(*ClientHelloInfo).Context() Context func github.com/cenkalti/backoff/v4.BackOffContext.Context() Context func go.opentelemetry.io/otel/trace.ContextWithRemoteSpanContext(parent Context, rsc trace.SpanContext) Context func go.opentelemetry.io/otel/trace.ContextWithSpan(parent Context, span trace.Span) Context func go.opentelemetry.io/otel/trace.ContextWithSpanContext(parent Context, sc trace.SpanContext) Context func go.opentelemetry.io/otel/trace.Tracer.Start(ctx Context, spanName string, opts ...trace.SpanStartOption) (Context, trace.Span) func golang.org/x/sync/errgroup.WithContext(ctx Context) (*errgroup.Group, Context) func net/http.(*Request).Context() Context func net/http/httptrace.WithClientTrace(ctx Context, trace *httptrace.ClientTrace) Context func nhooyr.io/websocket.(*Conn).CloseRead(ctx Context) Context func AfterFunc(ctx Context, f func()) (stop func() bool) func Cause(c Context) error func WithCancel(parent Context) (ctx Context, cancel CancelFunc) func WithCancelCause(parent Context) (ctx Context, cancel CancelCauseFunc) func WithDeadline(parent Context, d time.Time) (Context, CancelFunc) func WithDeadlineCause(parent Context, d time.Time, cause error) (Context, CancelFunc) func WithoutCancel(parent Context) Context func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) func WithTimeoutCause(parent Context, timeout time.Duration, cause error) (Context, CancelFunc) func WithValue(parent Context, key, val any) Context func crypto/tls.(*Conn).HandshakeContext(ctx Context) error func crypto/tls.(*Dialer).DialContext(ctx Context, network, addr string) (net.Conn, error) func crypto/tls.(*QUICConn).Start(ctx Context) error func github.com/cenkalti/backoff/v4.WithContext(b backoff.BackOff, ctx Context) backoff.BackOffContext func github.com/gotd/td/internal/exchange.ClientExchange.Run(ctx Context) (exchange.ClientExchangeResult, error) func github.com/gotd/td/internal/exchange.ServerExchange.Run(ctx Context) (exchange.ServerExchangeResult, error) func github.com/gotd/td/internal/mtproto.(*Conn).Invoke(ctx Context, input bin.Encoder, output bin.Decoder) error func github.com/gotd/td/internal/mtproto.(*Conn).Ping(ctx Context) error func github.com/gotd/td/internal/mtproto.(*Conn).Run(ctx Context, f func(ctx Context) error) error func github.com/gotd/td/internal/pool.NewDC(ctx Context, id int, newConn func() pool.Conn, opts pool.DCOptions) *pool.DC func github.com/gotd/td/internal/pool.Conn.Invoke(ctx Context, input bin.Encoder, output bin.Decoder) error func github.com/gotd/td/internal/pool.Conn.Ping(ctx Context) error func github.com/gotd/td/internal/pool.Conn.Run(ctx Context) error func github.com/gotd/td/internal/pool.(*DC).Invoke(ctx Context, input bin.Encoder, output bin.Decoder) error func github.com/gotd/td/internal/rpc.NopSend(Context, int64, int32, bin.Encoder) error func github.com/gotd/td/internal/rpc.(*Engine).Do(ctx Context, req rpc.Request) error func github.com/gotd/td/internal/tdsync.NewCancellableGroup(parent Context) *tdsync.CancellableGroup func github.com/gotd/td/internal/tdsync.NewLogGroup(parent Context, log *zap.Logger) *tdsync.LogGroup func github.com/gotd/td/internal/tdsync.NewSupervisor(parent Context) *tdsync.Supervisor func github.com/gotd/td/session.(*FileStorage).LoadSession(_ Context) ([]byte, error) func github.com/gotd/td/session.(*FileStorage).StoreSession(_ Context, data []byte) error func github.com/gotd/td/session.(*Loader).Load(ctx Context) (*session.Data, error) func github.com/gotd/td/session.(*Loader).Save(ctx Context, data *session.Data) error func github.com/gotd/td/session.Storage.LoadSession(ctx Context) ([]byte, error) func github.com/gotd/td/session.Storage.StoreSession(ctx Context, data []byte) error func github.com/gotd/td/session.(*StorageMemory).LoadSession(Context) ([]byte, error) func github.com/gotd/td/session.(*StorageMemory).StoreSession(ctx Context, data []byte) error func github.com/gotd/td/telegram.BotFromEnvironment(ctx Context, opts telegram.Options, setup func(ctx Context, client *telegram.Client) error, cb func(ctx Context, client *telegram.Client) error) error func github.com/gotd/td/telegram.RunUntilCanceled(ctx Context, client *telegram.Client) error func github.com/gotd/td/telegram.TestClient(ctx Context, opts telegram.Options, cb func(ctx Context, client *telegram.Client) error) error func github.com/gotd/td/telegram.(*Client).DC(ctx Context, dc int, max int64) (telegram.CloseInvoker, error) func github.com/gotd/td/telegram.(*Client).Invoke(ctx Context, input bin.Encoder, output bin.Decoder) error func github.com/gotd/td/telegram.(*Client).MediaOnly(ctx Context, dc int, max int64) (telegram.CloseInvoker, error) func github.com/gotd/td/telegram.(*Client).MigrateTo(ctx Context, dcID int) error func github.com/gotd/td/telegram.(*Client).Ping(ctx Context) error func github.com/gotd/td/telegram.(*Client).Run(ctx Context, f func(ctx Context) error) (err error) func github.com/gotd/td/telegram.(*Client).Self(ctx Context) (*tg.User, error) func github.com/gotd/td/telegram.(*Client).SendMessage(ctx Context, req *tg.MessagesSendMessageRequest) error func github.com/gotd/td/telegram.CloseInvoker.Invoke(ctx Context, input bin.Encoder, output bin.Decoder) error func github.com/gotd/td/telegram.InvokeFunc.Invoke(ctx Context, input bin.Encoder, output bin.Decoder) error func github.com/gotd/td/telegram.SessionStorage.LoadSession(ctx Context) ([]byte, error) func github.com/gotd/td/telegram.SessionStorage.StoreSession(ctx Context, data []byte) error func github.com/gotd/td/telegram.UpdateHandler.Handle(ctx Context, u tg.UpdatesClass) error func github.com/gotd/td/telegram.UpdateHandlerFunc.Handle(ctx Context, u tg.UpdatesClass) error func github.com/gotd/td/telegram/auth.(*Client).AcceptTOS(ctx Context, id tg.DataJSON) error func github.com/gotd/td/telegram/auth.(*Client).Bot(ctx Context, token string) (*tg.AuthAuthorization, error) func github.com/gotd/td/telegram/auth.(*Client).CancelPasswordReset(ctx Context) error func github.com/gotd/td/telegram/auth.(*Client).IfNecessary(ctx Context, flow auth.Flow) error func github.com/gotd/td/telegram/auth.(*Client).Password(ctx Context, password string) (*tg.AuthAuthorization, error) func github.com/gotd/td/telegram/auth.(*Client).ResetPassword(ctx Context) (time.Time, error) func github.com/gotd/td/telegram/auth.(*Client).SendCode(ctx Context, phone string, options auth.SendCodeOptions) (tg.AuthSentCodeClass, error) func github.com/gotd/td/telegram/auth.(*Client).SignIn(ctx Context, phone, code, codeHash string) (*tg.AuthAuthorization, error) func github.com/gotd/td/telegram/auth.(*Client).SignUp(ctx Context, s auth.SignUp) (*tg.AuthAuthorization, error) func github.com/gotd/td/telegram/auth.(*Client).Status(ctx Context) (*auth.Status, error) func github.com/gotd/td/telegram/auth.(*Client).Test(ctx Context, dc int) error func github.com/gotd/td/telegram/auth.(*Client).TestUser(ctx Context, phone string, dc int) error func github.com/gotd/td/telegram/auth.(*Client).UpdatePassword(ctx Context, newPassword string, opts auth.UpdatePasswordOptions) error func github.com/gotd/td/telegram/auth.CodeAuthenticator.Code(ctx Context, sentCode *tg.AuthSentCode) (string, error) func github.com/gotd/td/telegram/auth.CodeAuthenticatorFunc.Code(ctx Context, sentCode *tg.AuthSentCode) (string, error) func github.com/gotd/td/telegram/auth.Flow.Run(ctx Context, client auth.FlowClient) error func github.com/gotd/td/telegram/auth.FlowClient.Password(ctx Context, password string) (*tg.AuthAuthorization, error) func github.com/gotd/td/telegram/auth.FlowClient.SendCode(ctx Context, phone string, options auth.SendCodeOptions) (tg.AuthSentCodeClass, error) func github.com/gotd/td/telegram/auth.FlowClient.SignIn(ctx Context, phone, code, codeHash string) (*tg.AuthAuthorization, error) func github.com/gotd/td/telegram/auth.FlowClient.SignUp(ctx Context, s auth.SignUp) (*tg.AuthAuthorization, error) func github.com/gotd/td/telegram/auth.UserAuthenticator.AcceptTermsOfService(ctx Context, tos tg.HelpTermsOfService) error func github.com/gotd/td/telegram/auth.UserAuthenticator.Code(ctx Context, sentCode *tg.AuthSentCode) (string, error) func github.com/gotd/td/telegram/auth.UserAuthenticator.Password(ctx Context) (string, error) func github.com/gotd/td/telegram/auth.UserAuthenticator.Phone(ctx Context) (string, error) func github.com/gotd/td/telegram/auth.UserAuthenticator.SignUp(ctx Context) (auth.UserInfo, error) func github.com/gotd/td/telegram/auth/qrlogin.AcceptQR(ctx Context, raw *tg.Client, t qrlogin.Token) (*tg.Authorization, error) func github.com/gotd/td/telegram/auth/qrlogin.QR.Accept(ctx Context, t qrlogin.Token) (*tg.Authorization, error) func github.com/gotd/td/telegram/auth/qrlogin.QR.Auth(ctx Context, loggedIn qrlogin.LoggedIn, show func(ctx Context, token qrlogin.Token) error, exceptIDs ...int64) (*tg.AuthAuthorization, error) func github.com/gotd/td/telegram/auth/qrlogin.QR.Export(ctx Context, exceptIDs ...int64) (qrlogin.Token, error) func github.com/gotd/td/telegram/auth/qrlogin.QR.Import(ctx Context) (*tg.AuthAuthorization, error) func github.com/gotd/td/telegram/dcs.Resolver.CDN(ctx Context, dc int, list dcs.List) (transport.Conn, error) func github.com/gotd/td/telegram/dcs.Resolver.MediaOnly(ctx Context, dc int, list dcs.List) (transport.Conn, error) func github.com/gotd/td/telegram/dcs.Resolver.Primary(ctx Context, dc int, list dcs.List) (transport.Conn, error) func github.com/gotd/td/telegram/internal/manager.(*Conn).Invoke(ctx Context, input bin.Encoder, output bin.Decoder) error func github.com/gotd/td/telegram/internal/manager.(*Conn).Ping(ctx Context) error func github.com/gotd/td/telegram/internal/manager.(*Conn).Run(ctx Context) (err error) func github.com/gotd/td/tg.(*Client).AccountAcceptAuthorization(ctx Context, request *tg.AccountAcceptAuthorizationRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountCancelPasswordEmail(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).AccountChangeAuthorizationSettings(ctx Context, request *tg.AccountChangeAuthorizationSettingsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountChangePhone(ctx Context, request *tg.AccountChangePhoneRequest) (tg.UserClass, error) func github.com/gotd/td/tg.(*Client).AccountCheckUsername(ctx Context, username string) (bool, error) func github.com/gotd/td/tg.(*Client).AccountClearRecentEmojiStatuses(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).AccountConfirmPasswordEmail(ctx Context, code string) (bool, error) func github.com/gotd/td/tg.(*Client).AccountConfirmPhone(ctx Context, request *tg.AccountConfirmPhoneRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountCreateTheme(ctx Context, request *tg.AccountCreateThemeRequest) (*tg.Theme, error) func github.com/gotd/td/tg.(*Client).AccountDeclinePasswordReset(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).AccountDeleteAccount(ctx Context, request *tg.AccountDeleteAccountRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountDeleteAutoSaveExceptions(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).AccountDeleteSecureValue(ctx Context, types []tg.SecureValueTypeClass) (bool, error) func github.com/gotd/td/tg.(*Client).AccountFinishTakeoutSession(ctx Context, request *tg.AccountFinishTakeoutSessionRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountGetAccountTTL(ctx Context) (*tg.AccountDaysTTL, error) func github.com/gotd/td/tg.(*Client).AccountGetAllSecureValues(ctx Context) ([]tg.SecureValue, error) func github.com/gotd/td/tg.(*Client).AccountGetAuthorizationForm(ctx Context, request *tg.AccountGetAuthorizationFormRequest) (*tg.AccountAuthorizationForm, error) func github.com/gotd/td/tg.(*Client).AccountGetAuthorizations(ctx Context) (*tg.AccountAuthorizations, error) func github.com/gotd/td/tg.(*Client).AccountGetAutoDownloadSettings(ctx Context) (*tg.AccountAutoDownloadSettings, error) func github.com/gotd/td/tg.(*Client).AccountGetAutoSaveSettings(ctx Context) (*tg.AccountAutoSaveSettings, error) func github.com/gotd/td/tg.(*Client).AccountGetChannelDefaultEmojiStatuses(ctx Context, hash int64) (tg.AccountEmojiStatusesClass, error) func github.com/gotd/td/tg.(*Client).AccountGetChannelRestrictedStatusEmojis(ctx Context, hash int64) (tg.EmojiListClass, error) func github.com/gotd/td/tg.(*Client).AccountGetChatThemes(ctx Context, hash int64) (tg.AccountThemesClass, error) func github.com/gotd/td/tg.(*Client).AccountGetContactSignUpNotification(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).AccountGetContentSettings(ctx Context) (*tg.AccountContentSettings, error) func github.com/gotd/td/tg.(*Client).AccountGetDefaultBackgroundEmojis(ctx Context, hash int64) (tg.EmojiListClass, error) func github.com/gotd/td/tg.(*Client).AccountGetDefaultEmojiStatuses(ctx Context, hash int64) (tg.AccountEmojiStatusesClass, error) func github.com/gotd/td/tg.(*Client).AccountGetDefaultGroupPhotoEmojis(ctx Context, hash int64) (tg.EmojiListClass, error) func github.com/gotd/td/tg.(*Client).AccountGetDefaultProfilePhotoEmojis(ctx Context, hash int64) (tg.EmojiListClass, error) func github.com/gotd/td/tg.(*Client).AccountGetGlobalPrivacySettings(ctx Context) (*tg.GlobalPrivacySettings, error) func github.com/gotd/td/tg.(*Client).AccountGetMultiWallPapers(ctx Context, wallpapers []tg.InputWallPaperClass) ([]tg.WallPaperClass, error) func github.com/gotd/td/tg.(*Client).AccountGetNotifyExceptions(ctx Context, request *tg.AccountGetNotifyExceptionsRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).AccountGetNotifySettings(ctx Context, peer tg.InputNotifyPeerClass) (*tg.PeerNotifySettings, error) func github.com/gotd/td/tg.(*Client).AccountGetPassword(ctx Context) (*tg.AccountPassword, error) func github.com/gotd/td/tg.(*Client).AccountGetPasswordSettings(ctx Context, password tg.InputCheckPasswordSRPClass) (*tg.AccountPasswordSettings, error) func github.com/gotd/td/tg.(*Client).AccountGetPrivacy(ctx Context, key tg.InputPrivacyKeyClass) (*tg.AccountPrivacyRules, error) func github.com/gotd/td/tg.(*Client).AccountGetRecentEmojiStatuses(ctx Context, hash int64) (tg.AccountEmojiStatusesClass, error) func github.com/gotd/td/tg.(*Client).AccountGetSavedRingtones(ctx Context, hash int64) (tg.AccountSavedRingtonesClass, error) func github.com/gotd/td/tg.(*Client).AccountGetSecureValue(ctx Context, types []tg.SecureValueTypeClass) ([]tg.SecureValue, error) func github.com/gotd/td/tg.(*Client).AccountGetTheme(ctx Context, request *tg.AccountGetThemeRequest) (*tg.Theme, error) func github.com/gotd/td/tg.(*Client).AccountGetThemes(ctx Context, request *tg.AccountGetThemesRequest) (tg.AccountThemesClass, error) func github.com/gotd/td/tg.(*Client).AccountGetTmpPassword(ctx Context, request *tg.AccountGetTmpPasswordRequest) (*tg.AccountTmpPassword, error) func github.com/gotd/td/tg.(*Client).AccountGetWallPaper(ctx Context, wallpaper tg.InputWallPaperClass) (tg.WallPaperClass, error) func github.com/gotd/td/tg.(*Client).AccountGetWallPapers(ctx Context, hash int64) (tg.AccountWallPapersClass, error) func github.com/gotd/td/tg.(*Client).AccountGetWebAuthorizations(ctx Context) (*tg.AccountWebAuthorizations, error) func github.com/gotd/td/tg.(*Client).AccountInitTakeoutSession(ctx Context, request *tg.AccountInitTakeoutSessionRequest) (*tg.AccountTakeout, error) func github.com/gotd/td/tg.(*Client).AccountInstallTheme(ctx Context, request *tg.AccountInstallThemeRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountInstallWallPaper(ctx Context, request *tg.AccountInstallWallPaperRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountInvalidateSignInCodes(ctx Context, codes []string) (bool, error) func github.com/gotd/td/tg.(*Client).AccountRegisterDevice(ctx Context, request *tg.AccountRegisterDeviceRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountReorderUsernames(ctx Context, order []string) (bool, error) func github.com/gotd/td/tg.(*Client).AccountReportPeer(ctx Context, request *tg.AccountReportPeerRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountReportProfilePhoto(ctx Context, request *tg.AccountReportProfilePhotoRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountResendPasswordEmail(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).AccountResetAuthorization(ctx Context, hash int64) (bool, error) func github.com/gotd/td/tg.(*Client).AccountResetNotifySettings(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).AccountResetPassword(ctx Context) (tg.AccountResetPasswordResultClass, error) func github.com/gotd/td/tg.(*Client).AccountResetWallPapers(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).AccountResetWebAuthorization(ctx Context, hash int64) (bool, error) func github.com/gotd/td/tg.(*Client).AccountResetWebAuthorizations(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).AccountSaveAutoDownloadSettings(ctx Context, request *tg.AccountSaveAutoDownloadSettingsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountSaveAutoSaveSettings(ctx Context, request *tg.AccountSaveAutoSaveSettingsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountSaveRingtone(ctx Context, request *tg.AccountSaveRingtoneRequest) (tg.AccountSavedRingtoneClass, error) func github.com/gotd/td/tg.(*Client).AccountSaveSecureValue(ctx Context, request *tg.AccountSaveSecureValueRequest) (*tg.SecureValue, error) func github.com/gotd/td/tg.(*Client).AccountSaveTheme(ctx Context, request *tg.AccountSaveThemeRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountSaveWallPaper(ctx Context, request *tg.AccountSaveWallPaperRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountSendChangePhoneCode(ctx Context, request *tg.AccountSendChangePhoneCodeRequest) (tg.AuthSentCodeClass, error) func github.com/gotd/td/tg.(*Client).AccountSendConfirmPhoneCode(ctx Context, request *tg.AccountSendConfirmPhoneCodeRequest) (tg.AuthSentCodeClass, error) func github.com/gotd/td/tg.(*Client).AccountSendVerifyEmailCode(ctx Context, request *tg.AccountSendVerifyEmailCodeRequest) (*tg.AccountSentEmailCode, error) func github.com/gotd/td/tg.(*Client).AccountSendVerifyPhoneCode(ctx Context, request *tg.AccountSendVerifyPhoneCodeRequest) (tg.AuthSentCodeClass, error) func github.com/gotd/td/tg.(*Client).AccountSetAccountTTL(ctx Context, ttl tg.AccountDaysTTL) (bool, error) func github.com/gotd/td/tg.(*Client).AccountSetAuthorizationTTL(ctx Context, authorizationttldays int) (bool, error) func github.com/gotd/td/tg.(*Client).AccountSetContactSignUpNotification(ctx Context, silent bool) (bool, error) func github.com/gotd/td/tg.(*Client).AccountSetContentSettings(ctx Context, request *tg.AccountSetContentSettingsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountSetGlobalPrivacySettings(ctx Context, settings tg.GlobalPrivacySettings) (*tg.GlobalPrivacySettings, error) func github.com/gotd/td/tg.(*Client).AccountSetPrivacy(ctx Context, request *tg.AccountSetPrivacyRequest) (*tg.AccountPrivacyRules, error) func github.com/gotd/td/tg.(*Client).AccountToggleUsername(ctx Context, request *tg.AccountToggleUsernameRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountUnregisterDevice(ctx Context, request *tg.AccountUnregisterDeviceRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountUpdateColor(ctx Context, request *tg.AccountUpdateColorRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountUpdateDeviceLocked(ctx Context, period int) (bool, error) func github.com/gotd/td/tg.(*Client).AccountUpdateEmojiStatus(ctx Context, emojistatus tg.EmojiStatusClass) (bool, error) func github.com/gotd/td/tg.(*Client).AccountUpdateNotifySettings(ctx Context, request *tg.AccountUpdateNotifySettingsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountUpdatePasswordSettings(ctx Context, request *tg.AccountUpdatePasswordSettingsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AccountUpdateProfile(ctx Context, request *tg.AccountUpdateProfileRequest) (tg.UserClass, error) func github.com/gotd/td/tg.(*Client).AccountUpdateStatus(ctx Context, offline bool) (bool, error) func github.com/gotd/td/tg.(*Client).AccountUpdateTheme(ctx Context, request *tg.AccountUpdateThemeRequest) (*tg.Theme, error) func github.com/gotd/td/tg.(*Client).AccountUpdateUsername(ctx Context, username string) (tg.UserClass, error) func github.com/gotd/td/tg.(*Client).AccountUploadRingtone(ctx Context, request *tg.AccountUploadRingtoneRequest) (tg.DocumentClass, error) func github.com/gotd/td/tg.(*Client).AccountUploadTheme(ctx Context, request *tg.AccountUploadThemeRequest) (tg.DocumentClass, error) func github.com/gotd/td/tg.(*Client).AccountUploadWallPaper(ctx Context, request *tg.AccountUploadWallPaperRequest) (tg.WallPaperClass, error) func github.com/gotd/td/tg.(*Client).AccountVerifyEmail(ctx Context, request *tg.AccountVerifyEmailRequest) (tg.AccountEmailVerifiedClass, error) func github.com/gotd/td/tg.(*Client).AccountVerifyPhone(ctx Context, request *tg.AccountVerifyPhoneRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AuthAcceptLoginToken(ctx Context, token []byte) (*tg.Authorization, error) func github.com/gotd/td/tg.(*Client).AuthBindTempAuthKey(ctx Context, request *tg.AuthBindTempAuthKeyRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AuthCancelCode(ctx Context, request *tg.AuthCancelCodeRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AuthCheckPassword(ctx Context, password tg.InputCheckPasswordSRPClass) (tg.AuthAuthorizationClass, error) func github.com/gotd/td/tg.(*Client).AuthCheckRecoveryPassword(ctx Context, code string) (bool, error) func github.com/gotd/td/tg.(*Client).AuthDropTempAuthKeys(ctx Context, exceptauthkeys []int64) (bool, error) func github.com/gotd/td/tg.(*Client).AuthExportAuthorization(ctx Context, dcid int) (*tg.AuthExportedAuthorization, error) func github.com/gotd/td/tg.(*Client).AuthExportLoginToken(ctx Context, request *tg.AuthExportLoginTokenRequest) (tg.AuthLoginTokenClass, error) func github.com/gotd/td/tg.(*Client).AuthImportAuthorization(ctx Context, request *tg.AuthImportAuthorizationRequest) (tg.AuthAuthorizationClass, error) func github.com/gotd/td/tg.(*Client).AuthImportBotAuthorization(ctx Context, request *tg.AuthImportBotAuthorizationRequest) (tg.AuthAuthorizationClass, error) func github.com/gotd/td/tg.(*Client).AuthImportLoginToken(ctx Context, token []byte) (tg.AuthLoginTokenClass, error) func github.com/gotd/td/tg.(*Client).AuthImportWebTokenAuthorization(ctx Context, request *tg.AuthImportWebTokenAuthorizationRequest) (tg.AuthAuthorizationClass, error) func github.com/gotd/td/tg.(*Client).AuthLogOut(ctx Context) (*tg.AuthLoggedOut, error) func github.com/gotd/td/tg.(*Client).AuthRecoverPassword(ctx Context, request *tg.AuthRecoverPasswordRequest) (tg.AuthAuthorizationClass, error) func github.com/gotd/td/tg.(*Client).AuthRequestFirebaseSMS(ctx Context, request *tg.AuthRequestFirebaseSMSRequest) (bool, error) func github.com/gotd/td/tg.(*Client).AuthRequestPasswordRecovery(ctx Context) (*tg.AuthPasswordRecovery, error) func github.com/gotd/td/tg.(*Client).AuthResendCode(ctx Context, request *tg.AuthResendCodeRequest) (tg.AuthSentCodeClass, error) func github.com/gotd/td/tg.(*Client).AuthResetAuthorizations(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).AuthResetLoginEmail(ctx Context, request *tg.AuthResetLoginEmailRequest) (tg.AuthSentCodeClass, error) func github.com/gotd/td/tg.(*Client).AuthSendCode(ctx Context, request *tg.AuthSendCodeRequest) (tg.AuthSentCodeClass, error) func github.com/gotd/td/tg.(*Client).AuthSignIn(ctx Context, request *tg.AuthSignInRequest) (tg.AuthAuthorizationClass, error) func github.com/gotd/td/tg.(*Client).AuthSignUp(ctx Context, request *tg.AuthSignUpRequest) (tg.AuthAuthorizationClass, error) func github.com/gotd/td/tg.(*Client).BotsAllowSendMessage(ctx Context, bot tg.InputUserClass) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).BotsAnswerWebhookJSONQuery(ctx Context, request *tg.BotsAnswerWebhookJSONQueryRequest) (bool, error) func github.com/gotd/td/tg.(*Client).BotsCanSendMessage(ctx Context, bot tg.InputUserClass) (bool, error) func github.com/gotd/td/tg.(*Client).BotsGetBotCommands(ctx Context, request *tg.BotsGetBotCommandsRequest) ([]tg.BotCommand, error) func github.com/gotd/td/tg.(*Client).BotsGetBotInfo(ctx Context, request *tg.BotsGetBotInfoRequest) (*tg.BotsBotInfo, error) func github.com/gotd/td/tg.(*Client).BotsGetBotMenuButton(ctx Context, userid tg.InputUserClass) (tg.BotMenuButtonClass, error) func github.com/gotd/td/tg.(*Client).BotsInvokeWebViewCustomMethod(ctx Context, request *tg.BotsInvokeWebViewCustomMethodRequest) (*tg.DataJSON, error) func github.com/gotd/td/tg.(*Client).BotsReorderUsernames(ctx Context, request *tg.BotsReorderUsernamesRequest) (bool, error) func github.com/gotd/td/tg.(*Client).BotsResetBotCommands(ctx Context, request *tg.BotsResetBotCommandsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).BotsSendCustomRequest(ctx Context, request *tg.BotsSendCustomRequestRequest) (*tg.DataJSON, error) func github.com/gotd/td/tg.(*Client).BotsSetBotBroadcastDefaultAdminRights(ctx Context, adminrights tg.ChatAdminRights) (bool, error) func github.com/gotd/td/tg.(*Client).BotsSetBotCommands(ctx Context, request *tg.BotsSetBotCommandsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).BotsSetBotGroupDefaultAdminRights(ctx Context, adminrights tg.ChatAdminRights) (bool, error) func github.com/gotd/td/tg.(*Client).BotsSetBotInfo(ctx Context, request *tg.BotsSetBotInfoRequest) (bool, error) func github.com/gotd/td/tg.(*Client).BotsSetBotMenuButton(ctx Context, request *tg.BotsSetBotMenuButtonRequest) (bool, error) func github.com/gotd/td/tg.(*Client).BotsToggleUsername(ctx Context, request *tg.BotsToggleUsernameRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsCheckUsername(ctx Context, request *tg.ChannelsCheckUsernameRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsClickSponsoredMessage(ctx Context, request *tg.ChannelsClickSponsoredMessageRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsConvertToGigagroup(ctx Context, channel tg.InputChannelClass) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsCreateChannel(ctx Context, request *tg.ChannelsCreateChannelRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsCreateForumTopic(ctx Context, request *tg.ChannelsCreateForumTopicRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsDeactivateAllUsernames(ctx Context, channel tg.InputChannelClass) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsDeleteChannel(ctx Context, channel tg.InputChannelClass) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsDeleteHistory(ctx Context, request *tg.ChannelsDeleteHistoryRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsDeleteMessages(ctx Context, request *tg.ChannelsDeleteMessagesRequest) (*tg.MessagesAffectedMessages, error) func github.com/gotd/td/tg.(*Client).ChannelsDeleteParticipantHistory(ctx Context, request *tg.ChannelsDeleteParticipantHistoryRequest) (*tg.MessagesAffectedHistory, error) func github.com/gotd/td/tg.(*Client).ChannelsDeleteTopicHistory(ctx Context, request *tg.ChannelsDeleteTopicHistoryRequest) (*tg.MessagesAffectedHistory, error) func github.com/gotd/td/tg.(*Client).ChannelsEditAdmin(ctx Context, request *tg.ChannelsEditAdminRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsEditBanned(ctx Context, request *tg.ChannelsEditBannedRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsEditCreator(ctx Context, request *tg.ChannelsEditCreatorRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsEditForumTopic(ctx Context, request *tg.ChannelsEditForumTopicRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsEditLocation(ctx Context, request *tg.ChannelsEditLocationRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsEditPhoto(ctx Context, request *tg.ChannelsEditPhotoRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsEditTitle(ctx Context, request *tg.ChannelsEditTitleRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsExportMessageLink(ctx Context, request *tg.ChannelsExportMessageLinkRequest) (*tg.ExportedMessageLink, error) func github.com/gotd/td/tg.(*Client).ChannelsGetAdminedPublicChannels(ctx Context, request *tg.ChannelsGetAdminedPublicChannelsRequest) (tg.MessagesChatsClass, error) func github.com/gotd/td/tg.(*Client).ChannelsGetAdminLog(ctx Context, request *tg.ChannelsGetAdminLogRequest) (*tg.ChannelsAdminLogResults, error) func github.com/gotd/td/tg.(*Client).ChannelsGetChannelRecommendations(ctx Context, channel tg.InputChannelClass) (tg.MessagesChatsClass, error) func github.com/gotd/td/tg.(*Client).ChannelsGetChannels(ctx Context, id []tg.InputChannelClass) (tg.MessagesChatsClass, error) func github.com/gotd/td/tg.(*Client).ChannelsGetForumTopics(ctx Context, request *tg.ChannelsGetForumTopicsRequest) (*tg.MessagesForumTopics, error) func github.com/gotd/td/tg.(*Client).ChannelsGetForumTopicsByID(ctx Context, request *tg.ChannelsGetForumTopicsByIDRequest) (*tg.MessagesForumTopics, error) func github.com/gotd/td/tg.(*Client).ChannelsGetFullChannel(ctx Context, channel tg.InputChannelClass) (*tg.MessagesChatFull, error) func github.com/gotd/td/tg.(*Client).ChannelsGetGroupsForDiscussion(ctx Context) (tg.MessagesChatsClass, error) func github.com/gotd/td/tg.(*Client).ChannelsGetInactiveChannels(ctx Context) (*tg.MessagesInactiveChats, error) func github.com/gotd/td/tg.(*Client).ChannelsGetLeftChannels(ctx Context, offset int) (tg.MessagesChatsClass, error) func github.com/gotd/td/tg.(*Client).ChannelsGetMessages(ctx Context, request *tg.ChannelsGetMessagesRequest) (tg.MessagesMessagesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsGetParticipant(ctx Context, request *tg.ChannelsGetParticipantRequest) (*tg.ChannelsChannelParticipant, error) func github.com/gotd/td/tg.(*Client).ChannelsGetParticipants(ctx Context, request *tg.ChannelsGetParticipantsRequest) (tg.ChannelsChannelParticipantsClass, error) func github.com/gotd/td/tg.(*Client).ChannelsGetSendAs(ctx Context, peer tg.InputPeerClass) (*tg.ChannelsSendAsPeers, error) func github.com/gotd/td/tg.(*Client).ChannelsGetSponsoredMessages(ctx Context, channel tg.InputChannelClass) (tg.MessagesSponsoredMessagesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsInviteToChannel(ctx Context, request *tg.ChannelsInviteToChannelRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsJoinChannel(ctx Context, channel tg.InputChannelClass) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsLeaveChannel(ctx Context, channel tg.InputChannelClass) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsReadHistory(ctx Context, request *tg.ChannelsReadHistoryRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsReadMessageContents(ctx Context, request *tg.ChannelsReadMessageContentsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsReorderPinnedForumTopics(ctx Context, request *tg.ChannelsReorderPinnedForumTopicsRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsReorderUsernames(ctx Context, request *tg.ChannelsReorderUsernamesRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsReportAntiSpamFalsePositive(ctx Context, request *tg.ChannelsReportAntiSpamFalsePositiveRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsReportSpam(ctx Context, request *tg.ChannelsReportSpamRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsSetDiscussionGroup(ctx Context, request *tg.ChannelsSetDiscussionGroupRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsSetStickers(ctx Context, request *tg.ChannelsSetStickersRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsToggleAntiSpam(ctx Context, request *tg.ChannelsToggleAntiSpamRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsToggleForum(ctx Context, request *tg.ChannelsToggleForumRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsToggleJoinRequest(ctx Context, request *tg.ChannelsToggleJoinRequestRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsToggleJoinToSend(ctx Context, request *tg.ChannelsToggleJoinToSendRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsToggleParticipantsHidden(ctx Context, request *tg.ChannelsToggleParticipantsHiddenRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsTogglePreHistoryHidden(ctx Context, request *tg.ChannelsTogglePreHistoryHiddenRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsToggleSignatures(ctx Context, request *tg.ChannelsToggleSignaturesRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsToggleSlowMode(ctx Context, request *tg.ChannelsToggleSlowModeRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsToggleUsername(ctx Context, request *tg.ChannelsToggleUsernameRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsToggleViewForumAsMessages(ctx Context, request *tg.ChannelsToggleViewForumAsMessagesRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsUpdateColor(ctx Context, request *tg.ChannelsUpdateColorRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsUpdateEmojiStatus(ctx Context, request *tg.ChannelsUpdateEmojiStatusRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsUpdatePinnedForumTopic(ctx Context, request *tg.ChannelsUpdatePinnedForumTopicRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChannelsUpdateUsername(ctx Context, request *tg.ChannelsUpdateUsernameRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChannelsViewSponsoredMessage(ctx Context, request *tg.ChannelsViewSponsoredMessageRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChatlistsCheckChatlistInvite(ctx Context, slug string) (tg.ChatlistsChatlistInviteClass, error) func github.com/gotd/td/tg.(*Client).ChatlistsDeleteExportedInvite(ctx Context, request *tg.ChatlistsDeleteExportedInviteRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ChatlistsEditExportedInvite(ctx Context, request *tg.ChatlistsEditExportedInviteRequest) (*tg.ExportedChatlistInvite, error) func github.com/gotd/td/tg.(*Client).ChatlistsExportChatlistInvite(ctx Context, request *tg.ChatlistsExportChatlistInviteRequest) (*tg.ChatlistsExportedChatlistInvite, error) func github.com/gotd/td/tg.(*Client).ChatlistsGetChatlistUpdates(ctx Context, chatlist tg.InputChatlistDialogFilter) (*tg.ChatlistsChatlistUpdates, error) func github.com/gotd/td/tg.(*Client).ChatlistsGetExportedInvites(ctx Context, chatlist tg.InputChatlistDialogFilter) (*tg.ChatlistsExportedInvites, error) func github.com/gotd/td/tg.(*Client).ChatlistsGetLeaveChatlistSuggestions(ctx Context, chatlist tg.InputChatlistDialogFilter) ([]tg.PeerClass, error) func github.com/gotd/td/tg.(*Client).ChatlistsHideChatlistUpdates(ctx Context, chatlist tg.InputChatlistDialogFilter) (bool, error) func github.com/gotd/td/tg.(*Client).ChatlistsJoinChatlistInvite(ctx Context, request *tg.ChatlistsJoinChatlistInviteRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChatlistsJoinChatlistUpdates(ctx Context, request *tg.ChatlistsJoinChatlistUpdatesRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ChatlistsLeaveChatlist(ctx Context, request *tg.ChatlistsLeaveChatlistRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ContactsAcceptContact(ctx Context, id tg.InputUserClass) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ContactsAddContact(ctx Context, request *tg.ContactsAddContactRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ContactsBlock(ctx Context, request *tg.ContactsBlockRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ContactsBlockFromReplies(ctx Context, request *tg.ContactsBlockFromRepliesRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ContactsDeleteByPhones(ctx Context, phones []string) (bool, error) func github.com/gotd/td/tg.(*Client).ContactsDeleteContacts(ctx Context, id []tg.InputUserClass) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ContactsEditCloseFriends(ctx Context, id []int64) (bool, error) func github.com/gotd/td/tg.(*Client).ContactsExportContactToken(ctx Context) (*tg.ExportedContactToken, error) func github.com/gotd/td/tg.(*Client).ContactsGetBlocked(ctx Context, request *tg.ContactsGetBlockedRequest) (tg.ContactsBlockedClass, error) func github.com/gotd/td/tg.(*Client).ContactsGetContactIDs(ctx Context, hash int64) ([]int, error) func github.com/gotd/td/tg.(*Client).ContactsGetContacts(ctx Context, hash int64) (tg.ContactsContactsClass, error) func github.com/gotd/td/tg.(*Client).ContactsGetLocated(ctx Context, request *tg.ContactsGetLocatedRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).ContactsGetSaved(ctx Context) ([]tg.SavedPhoneContact, error) func github.com/gotd/td/tg.(*Client).ContactsGetStatuses(ctx Context) ([]tg.ContactStatus, error) func github.com/gotd/td/tg.(*Client).ContactsGetTopPeers(ctx Context, request *tg.ContactsGetTopPeersRequest) (tg.ContactsTopPeersClass, error) func github.com/gotd/td/tg.(*Client).ContactsImportContacts(ctx Context, contacts []tg.InputPhoneContact) (*tg.ContactsImportedContacts, error) func github.com/gotd/td/tg.(*Client).ContactsImportContactToken(ctx Context, token string) (tg.UserClass, error) func github.com/gotd/td/tg.(*Client).ContactsResetSaved(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).ContactsResetTopPeerRating(ctx Context, request *tg.ContactsResetTopPeerRatingRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ContactsResolvePhone(ctx Context, phone string) (*tg.ContactsResolvedPeer, error) func github.com/gotd/td/tg.(*Client).ContactsResolveUsername(ctx Context, username string) (*tg.ContactsResolvedPeer, error) func github.com/gotd/td/tg.(*Client).ContactsSearch(ctx Context, request *tg.ContactsSearchRequest) (*tg.ContactsFound, error) func github.com/gotd/td/tg.(*Client).ContactsSetBlocked(ctx Context, request *tg.ContactsSetBlockedRequest) (bool, error) func github.com/gotd/td/tg.(*Client).ContactsToggleTopPeers(ctx Context, enabled bool) (bool, error) func github.com/gotd/td/tg.(*Client).ContactsUnblock(ctx Context, request *tg.ContactsUnblockRequest) (bool, error) func github.com/gotd/td/tg.(*Client).FoldersEditPeerFolders(ctx Context, folderpeers []tg.InputFolderPeer) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).HelpAcceptTermsOfService(ctx Context, id tg.DataJSON) (bool, error) func github.com/gotd/td/tg.(*Client).HelpDismissSuggestion(ctx Context, request *tg.HelpDismissSuggestionRequest) (bool, error) func github.com/gotd/td/tg.(*Client).HelpEditUserInfo(ctx Context, request *tg.HelpEditUserInfoRequest) (tg.HelpUserInfoClass, error) func github.com/gotd/td/tg.(*Client).HelpGetAppConfig(ctx Context, hash int) (tg.HelpAppConfigClass, error) func github.com/gotd/td/tg.(*Client).HelpGetAppUpdate(ctx Context, source string) (tg.HelpAppUpdateClass, error) func github.com/gotd/td/tg.(*Client).HelpGetCDNConfig(ctx Context) (*tg.CDNConfig, error) func github.com/gotd/td/tg.(*Client).HelpGetConfig(ctx Context) (*tg.Config, error) func github.com/gotd/td/tg.(*Client).HelpGetCountriesList(ctx Context, request *tg.HelpGetCountriesListRequest) (tg.HelpCountriesListClass, error) func github.com/gotd/td/tg.(*Client).HelpGetDeepLinkInfo(ctx Context, path string) (tg.HelpDeepLinkInfoClass, error) func github.com/gotd/td/tg.(*Client).HelpGetInviteText(ctx Context) (*tg.HelpInviteText, error) func github.com/gotd/td/tg.(*Client).HelpGetNearestDC(ctx Context) (*tg.NearestDC, error) func github.com/gotd/td/tg.(*Client).HelpGetPassportConfig(ctx Context, hash int) (tg.HelpPassportConfigClass, error) func github.com/gotd/td/tg.(*Client).HelpGetPeerColors(ctx Context, hash int) (tg.HelpPeerColorsClass, error) func github.com/gotd/td/tg.(*Client).HelpGetPeerProfileColors(ctx Context, hash int) (tg.HelpPeerColorsClass, error) func github.com/gotd/td/tg.(*Client).HelpGetPremiumPromo(ctx Context) (*tg.HelpPremiumPromo, error) func github.com/gotd/td/tg.(*Client).HelpGetPromoData(ctx Context) (tg.HelpPromoDataClass, error) func github.com/gotd/td/tg.(*Client).HelpGetRecentMeURLs(ctx Context, referer string) (*tg.HelpRecentMeURLs, error) func github.com/gotd/td/tg.(*Client).HelpGetSupport(ctx Context) (*tg.HelpSupport, error) func github.com/gotd/td/tg.(*Client).HelpGetSupportName(ctx Context) (*tg.HelpSupportName, error) func github.com/gotd/td/tg.(*Client).HelpGetTermsOfServiceUpdate(ctx Context) (tg.HelpTermsOfServiceUpdateClass, error) func github.com/gotd/td/tg.(*Client).HelpGetUserInfo(ctx Context, userid tg.InputUserClass) (tg.HelpUserInfoClass, error) func github.com/gotd/td/tg.(*Client).HelpHidePromoData(ctx Context, peer tg.InputPeerClass) (bool, error) func github.com/gotd/td/tg.(*Client).HelpSaveAppLog(ctx Context, events []tg.InputAppEvent) (bool, error) func github.com/gotd/td/tg.(*Client).HelpSetBotUpdatesStatus(ctx Context, request *tg.HelpSetBotUpdatesStatusRequest) (bool, error) func github.com/gotd/td/tg.(*Client).LangpackGetDifference(ctx Context, request *tg.LangpackGetDifferenceRequest) (*tg.LangPackDifference, error) func github.com/gotd/td/tg.(*Client).LangpackGetLangPack(ctx Context, request *tg.LangpackGetLangPackRequest) (*tg.LangPackDifference, error) func github.com/gotd/td/tg.(*Client).LangpackGetLanguage(ctx Context, request *tg.LangpackGetLanguageRequest) (*tg.LangPackLanguage, error) func github.com/gotd/td/tg.(*Client).LangpackGetLanguages(ctx Context, langpack string) ([]tg.LangPackLanguage, error) func github.com/gotd/td/tg.(*Client).LangpackGetStrings(ctx Context, request *tg.LangpackGetStringsRequest) ([]tg.LangPackStringClass, error) func github.com/gotd/td/tg.(*Client).MessagesAcceptEncryption(ctx Context, request *tg.MessagesAcceptEncryptionRequest) (tg.EncryptedChatClass, error) func github.com/gotd/td/tg.(*Client).MessagesAcceptURLAuth(ctx Context, request *tg.MessagesAcceptURLAuthRequest) (tg.URLAuthResultClass, error) func github.com/gotd/td/tg.(*Client).MessagesAddChatUser(ctx Context, request *tg.MessagesAddChatUserRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesCheckChatInvite(ctx Context, hash string) (tg.ChatInviteClass, error) func github.com/gotd/td/tg.(*Client).MessagesCheckHistoryImport(ctx Context, importhead string) (*tg.MessagesHistoryImportParsed, error) func github.com/gotd/td/tg.(*Client).MessagesCheckHistoryImportPeer(ctx Context, peer tg.InputPeerClass) (*tg.MessagesCheckedHistoryImportPeer, error) func github.com/gotd/td/tg.(*Client).MessagesClearAllDrafts(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesClearRecentReactions(ctx Context) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesClearRecentStickers(ctx Context, request *tg.MessagesClearRecentStickersRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesCreateChat(ctx Context, request *tg.MessagesCreateChatRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesDeleteChat(ctx Context, chatid int64) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesDeleteChatUser(ctx Context, request *tg.MessagesDeleteChatUserRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesDeleteExportedChatInvite(ctx Context, request *tg.MessagesDeleteExportedChatInviteRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesDeleteHistory(ctx Context, request *tg.MessagesDeleteHistoryRequest) (*tg.MessagesAffectedHistory, error) func github.com/gotd/td/tg.(*Client).MessagesDeleteMessages(ctx Context, request *tg.MessagesDeleteMessagesRequest) (*tg.MessagesAffectedMessages, error) func github.com/gotd/td/tg.(*Client).MessagesDeletePhoneCallHistory(ctx Context, request *tg.MessagesDeletePhoneCallHistoryRequest) (*tg.MessagesAffectedFoundMessages, error) func github.com/gotd/td/tg.(*Client).MessagesDeleteRevokedExportedChatInvites(ctx Context, request *tg.MessagesDeleteRevokedExportedChatInvitesRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesDeleteScheduledMessages(ctx Context, request *tg.MessagesDeleteScheduledMessagesRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesDiscardEncryption(ctx Context, request *tg.MessagesDiscardEncryptionRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesEditChatAbout(ctx Context, request *tg.MessagesEditChatAboutRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesEditChatAdmin(ctx Context, request *tg.MessagesEditChatAdminRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesEditChatDefaultBannedRights(ctx Context, request *tg.MessagesEditChatDefaultBannedRightsRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesEditChatPhoto(ctx Context, request *tg.MessagesEditChatPhotoRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesEditChatTitle(ctx Context, request *tg.MessagesEditChatTitleRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesEditExportedChatInvite(ctx Context, request *tg.MessagesEditExportedChatInviteRequest) (tg.MessagesExportedChatInviteClass, error) func github.com/gotd/td/tg.(*Client).MessagesEditInlineBotMessage(ctx Context, request *tg.MessagesEditInlineBotMessageRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesEditMessage(ctx Context, request *tg.MessagesEditMessageRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesExportChatInvite(ctx Context, request *tg.MessagesExportChatInviteRequest) (tg.ExportedChatInviteClass, error) func github.com/gotd/td/tg.(*Client).MessagesFaveSticker(ctx Context, request *tg.MessagesFaveStickerRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesForwardMessages(ctx Context, request *tg.MessagesForwardMessagesRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetAdminsWithInvites(ctx Context, peer tg.InputPeerClass) (*tg.MessagesChatAdminsWithInvites, error) func github.com/gotd/td/tg.(*Client).MessagesGetAllDrafts(ctx Context) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetAllStickers(ctx Context, hash int64) (tg.MessagesAllStickersClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetArchivedStickers(ctx Context, request *tg.MessagesGetArchivedStickersRequest) (*tg.MessagesArchivedStickers, error) func github.com/gotd/td/tg.(*Client).MessagesGetAttachedStickers(ctx Context, media tg.InputStickeredMediaClass) ([]tg.StickerSetCoveredClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetAttachMenuBot(ctx Context, bot tg.InputUserClass) (*tg.AttachMenuBotsBot, error) func github.com/gotd/td/tg.(*Client).MessagesGetAttachMenuBots(ctx Context, hash int64) (tg.AttachMenuBotsClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetAvailableReactions(ctx Context, hash int) (tg.MessagesAvailableReactionsClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetBotApp(ctx Context, request *tg.MessagesGetBotAppRequest) (*tg.MessagesBotApp, error) func github.com/gotd/td/tg.(*Client).MessagesGetBotCallbackAnswer(ctx Context, request *tg.MessagesGetBotCallbackAnswerRequest) (*tg.MessagesBotCallbackAnswer, error) func github.com/gotd/td/tg.(*Client).MessagesGetChatInviteImporters(ctx Context, request *tg.MessagesGetChatInviteImportersRequest) (*tg.MessagesChatInviteImporters, error) func github.com/gotd/td/tg.(*Client).MessagesGetChats(ctx Context, id []int64) (tg.MessagesChatsClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetCommonChats(ctx Context, request *tg.MessagesGetCommonChatsRequest) (tg.MessagesChatsClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetCustomEmojiDocuments(ctx Context, documentid []int64) ([]tg.DocumentClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetDefaultHistoryTTL(ctx Context) (*tg.DefaultHistoryTTL, error) func github.com/gotd/td/tg.(*Client).MessagesGetDhConfig(ctx Context, request *tg.MessagesGetDhConfigRequest) (tg.MessagesDhConfigClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetDialogFilters(ctx Context) ([]tg.DialogFilterClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetDialogs(ctx Context, request *tg.MessagesGetDialogsRequest) (tg.MessagesDialogsClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetDialogUnreadMarks(ctx Context) ([]tg.DialogPeerClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetDiscussionMessage(ctx Context, request *tg.MessagesGetDiscussionMessageRequest) (*tg.MessagesDiscussionMessage, error) func github.com/gotd/td/tg.(*Client).MessagesGetDocumentByHash(ctx Context, request *tg.MessagesGetDocumentByHashRequest) (tg.DocumentClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetEmojiGroups(ctx Context, hash int) (tg.MessagesEmojiGroupsClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetEmojiKeywords(ctx Context, langcode string) (*tg.EmojiKeywordsDifference, error) func github.com/gotd/td/tg.(*Client).MessagesGetEmojiKeywordsDifference(ctx Context, request *tg.MessagesGetEmojiKeywordsDifferenceRequest) (*tg.EmojiKeywordsDifference, error) func github.com/gotd/td/tg.(*Client).MessagesGetEmojiKeywordsLanguages(ctx Context, langcodes []string) ([]tg.EmojiLanguage, error) func github.com/gotd/td/tg.(*Client).MessagesGetEmojiProfilePhotoGroups(ctx Context, hash int) (tg.MessagesEmojiGroupsClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetEmojiStatusGroups(ctx Context, hash int) (tg.MessagesEmojiGroupsClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetEmojiStickers(ctx Context, hash int64) (tg.MessagesAllStickersClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetEmojiURL(ctx Context, langcode string) (*tg.EmojiURL, error) func github.com/gotd/td/tg.(*Client).MessagesGetExportedChatInvite(ctx Context, request *tg.MessagesGetExportedChatInviteRequest) (tg.MessagesExportedChatInviteClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetExportedChatInvites(ctx Context, request *tg.MessagesGetExportedChatInvitesRequest) (*tg.MessagesExportedChatInvites, error) func github.com/gotd/td/tg.(*Client).MessagesGetExtendedMedia(ctx Context, request *tg.MessagesGetExtendedMediaRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetFavedStickers(ctx Context, hash int64) (tg.MessagesFavedStickersClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetFeaturedEmojiStickers(ctx Context, hash int64) (tg.MessagesFeaturedStickersClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetFeaturedStickers(ctx Context, hash int64) (tg.MessagesFeaturedStickersClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetFullChat(ctx Context, chatid int64) (*tg.MessagesChatFull, error) func github.com/gotd/td/tg.(*Client).MessagesGetGameHighScores(ctx Context, request *tg.MessagesGetGameHighScoresRequest) (*tg.MessagesHighScores, error) func github.com/gotd/td/tg.(*Client).MessagesGetHistory(ctx Context, request *tg.MessagesGetHistoryRequest) (tg.MessagesMessagesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetInlineBotResults(ctx Context, request *tg.MessagesGetInlineBotResultsRequest) (*tg.MessagesBotResults, error) func github.com/gotd/td/tg.(*Client).MessagesGetInlineGameHighScores(ctx Context, request *tg.MessagesGetInlineGameHighScoresRequest) (*tg.MessagesHighScores, error) func github.com/gotd/td/tg.(*Client).MessagesGetMaskStickers(ctx Context, hash int64) (tg.MessagesAllStickersClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetMessageEditData(ctx Context, request *tg.MessagesGetMessageEditDataRequest) (*tg.MessagesMessageEditData, error) func github.com/gotd/td/tg.(*Client).MessagesGetMessageReactionsList(ctx Context, request *tg.MessagesGetMessageReactionsListRequest) (*tg.MessagesMessageReactionsList, error) func github.com/gotd/td/tg.(*Client).MessagesGetMessageReadParticipants(ctx Context, request *tg.MessagesGetMessageReadParticipantsRequest) ([]tg.ReadParticipantDate, error) func github.com/gotd/td/tg.(*Client).MessagesGetMessages(ctx Context, id []tg.InputMessageClass) (tg.MessagesMessagesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetMessagesReactions(ctx Context, request *tg.MessagesGetMessagesReactionsRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetMessagesViews(ctx Context, request *tg.MessagesGetMessagesViewsRequest) (*tg.MessagesMessageViews, error) func github.com/gotd/td/tg.(*Client).MessagesGetOldFeaturedStickers(ctx Context, request *tg.MessagesGetOldFeaturedStickersRequest) (tg.MessagesFeaturedStickersClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetOnlines(ctx Context, peer tg.InputPeerClass) (*tg.ChatOnlines, error) func github.com/gotd/td/tg.(*Client).MessagesGetPeerDialogs(ctx Context, peers []tg.InputDialogPeerClass) (*tg.MessagesPeerDialogs, error) func github.com/gotd/td/tg.(*Client).MessagesGetPeerSettings(ctx Context, peer tg.InputPeerClass) (*tg.MessagesPeerSettings, error) func github.com/gotd/td/tg.(*Client).MessagesGetPinnedDialogs(ctx Context, folderid int) (*tg.MessagesPeerDialogs, error) func github.com/gotd/td/tg.(*Client).MessagesGetPollResults(ctx Context, request *tg.MessagesGetPollResultsRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetPollVotes(ctx Context, request *tg.MessagesGetPollVotesRequest) (*tg.MessagesVotesList, error) func github.com/gotd/td/tg.(*Client).MessagesGetRecentLocations(ctx Context, request *tg.MessagesGetRecentLocationsRequest) (tg.MessagesMessagesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetRecentReactions(ctx Context, request *tg.MessagesGetRecentReactionsRequest) (tg.MessagesReactionsClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetRecentStickers(ctx Context, request *tg.MessagesGetRecentStickersRequest) (tg.MessagesRecentStickersClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetReplies(ctx Context, request *tg.MessagesGetRepliesRequest) (tg.MessagesMessagesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetSavedGifs(ctx Context, hash int64) (tg.MessagesSavedGifsClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetScheduledHistory(ctx Context, request *tg.MessagesGetScheduledHistoryRequest) (tg.MessagesMessagesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetScheduledMessages(ctx Context, request *tg.MessagesGetScheduledMessagesRequest) (tg.MessagesMessagesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetSearchCounters(ctx Context, request *tg.MessagesGetSearchCountersRequest) ([]tg.MessagesSearchCounter, error) func github.com/gotd/td/tg.(*Client).MessagesGetSearchResultsCalendar(ctx Context, request *tg.MessagesGetSearchResultsCalendarRequest) (*tg.MessagesSearchResultsCalendar, error) func github.com/gotd/td/tg.(*Client).MessagesGetSearchResultsPositions(ctx Context, request *tg.MessagesGetSearchResultsPositionsRequest) (*tg.MessagesSearchResultsPositions, error) func github.com/gotd/td/tg.(*Client).MessagesGetSplitRanges(ctx Context) ([]tg.MessageRange, error) func github.com/gotd/td/tg.(*Client).MessagesGetStickers(ctx Context, request *tg.MessagesGetStickersRequest) (tg.MessagesStickersClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetStickerSet(ctx Context, request *tg.MessagesGetStickerSetRequest) (tg.MessagesStickerSetClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetSuggestedDialogFilters(ctx Context) ([]tg.DialogFilterSuggested, error) func github.com/gotd/td/tg.(*Client).MessagesGetTopReactions(ctx Context, request *tg.MessagesGetTopReactionsRequest) (tg.MessagesReactionsClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetUnreadMentions(ctx Context, request *tg.MessagesGetUnreadMentionsRequest) (tg.MessagesMessagesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetUnreadReactions(ctx Context, request *tg.MessagesGetUnreadReactionsRequest) (tg.MessagesMessagesClass, error) func github.com/gotd/td/tg.(*Client).MessagesGetWebPage(ctx Context, request *tg.MessagesGetWebPageRequest) (*tg.MessagesWebPage, error) func github.com/gotd/td/tg.(*Client).MessagesGetWebPagePreview(ctx Context, request *tg.MessagesGetWebPagePreviewRequest) (tg.MessageMediaClass, error) func github.com/gotd/td/tg.(*Client).MessagesHideAllChatJoinRequests(ctx Context, request *tg.MessagesHideAllChatJoinRequestsRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesHideChatJoinRequest(ctx Context, request *tg.MessagesHideChatJoinRequestRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesHidePeerSettingsBar(ctx Context, peer tg.InputPeerClass) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesImportChatInvite(ctx Context, hash string) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesInitHistoryImport(ctx Context, request *tg.MessagesInitHistoryImportRequest) (*tg.MessagesHistoryImport, error) func github.com/gotd/td/tg.(*Client).MessagesInstallStickerSet(ctx Context, request *tg.MessagesInstallStickerSetRequest) (tg.MessagesStickerSetInstallResultClass, error) func github.com/gotd/td/tg.(*Client).MessagesMarkDialogUnread(ctx Context, request *tg.MessagesMarkDialogUnreadRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesMigrateChat(ctx Context, chatid int64) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesProlongWebView(ctx Context, request *tg.MessagesProlongWebViewRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesRateTranscribedAudio(ctx Context, request *tg.MessagesRateTranscribedAudioRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesReadDiscussion(ctx Context, request *tg.MessagesReadDiscussionRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesReadEncryptedHistory(ctx Context, request *tg.MessagesReadEncryptedHistoryRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesReadFeaturedStickers(ctx Context, id []int64) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesReadHistory(ctx Context, request *tg.MessagesReadHistoryRequest) (*tg.MessagesAffectedMessages, error) func github.com/gotd/td/tg.(*Client).MessagesReadMentions(ctx Context, request *tg.MessagesReadMentionsRequest) (*tg.MessagesAffectedHistory, error) func github.com/gotd/td/tg.(*Client).MessagesReadMessageContents(ctx Context, id []int) (*tg.MessagesAffectedMessages, error) func github.com/gotd/td/tg.(*Client).MessagesReadReactions(ctx Context, request *tg.MessagesReadReactionsRequest) (*tg.MessagesAffectedHistory, error) func github.com/gotd/td/tg.(*Client).MessagesReceivedMessages(ctx Context, maxid int) ([]tg.ReceivedNotifyMessage, error) func github.com/gotd/td/tg.(*Client).MessagesReceivedQueue(ctx Context, maxqts int) ([]int64, error) func github.com/gotd/td/tg.(*Client).MessagesReorderPinnedDialogs(ctx Context, request *tg.MessagesReorderPinnedDialogsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesReorderStickerSets(ctx Context, request *tg.MessagesReorderStickerSetsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesReport(ctx Context, request *tg.MessagesReportRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesReportEncryptedSpam(ctx Context, peer tg.InputEncryptedChat) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesReportReaction(ctx Context, request *tg.MessagesReportReactionRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesReportSpam(ctx Context, peer tg.InputPeerClass) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesRequestAppWebView(ctx Context, request *tg.MessagesRequestAppWebViewRequest) (*tg.AppWebViewResultURL, error) func github.com/gotd/td/tg.(*Client).MessagesRequestEncryption(ctx Context, request *tg.MessagesRequestEncryptionRequest) (tg.EncryptedChatClass, error) func github.com/gotd/td/tg.(*Client).MessagesRequestSimpleWebView(ctx Context, request *tg.MessagesRequestSimpleWebViewRequest) (*tg.SimpleWebViewResultURL, error) func github.com/gotd/td/tg.(*Client).MessagesRequestURLAuth(ctx Context, request *tg.MessagesRequestURLAuthRequest) (tg.URLAuthResultClass, error) func github.com/gotd/td/tg.(*Client).MessagesRequestWebView(ctx Context, request *tg.MessagesRequestWebViewRequest) (*tg.WebViewResultURL, error) func github.com/gotd/td/tg.(*Client).MessagesSaveDefaultSendAs(ctx Context, request *tg.MessagesSaveDefaultSendAsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesSaveDraft(ctx Context, request *tg.MessagesSaveDraftRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesSaveGif(ctx Context, request *tg.MessagesSaveGifRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesSaveRecentSticker(ctx Context, request *tg.MessagesSaveRecentStickerRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesSearch(ctx Context, request *tg.MessagesSearchRequest) (tg.MessagesMessagesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSearchCustomEmoji(ctx Context, request *tg.MessagesSearchCustomEmojiRequest) (tg.EmojiListClass, error) func github.com/gotd/td/tg.(*Client).MessagesSearchEmojiStickerSets(ctx Context, request *tg.MessagesSearchEmojiStickerSetsRequest) (tg.MessagesFoundStickerSetsClass, error) func github.com/gotd/td/tg.(*Client).MessagesSearchGlobal(ctx Context, request *tg.MessagesSearchGlobalRequest) (tg.MessagesMessagesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSearchSentMedia(ctx Context, request *tg.MessagesSearchSentMediaRequest) (tg.MessagesMessagesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSearchStickerSets(ctx Context, request *tg.MessagesSearchStickerSetsRequest) (tg.MessagesFoundStickerSetsClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendBotRequestedPeer(ctx Context, request *tg.MessagesSendBotRequestedPeerRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendEncrypted(ctx Context, request *tg.MessagesSendEncryptedRequest) (tg.MessagesSentEncryptedMessageClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendEncryptedFile(ctx Context, request *tg.MessagesSendEncryptedFileRequest) (tg.MessagesSentEncryptedMessageClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendEncryptedService(ctx Context, request *tg.MessagesSendEncryptedServiceRequest) (tg.MessagesSentEncryptedMessageClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendInlineBotResult(ctx Context, request *tg.MessagesSendInlineBotResultRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendMedia(ctx Context, request *tg.MessagesSendMediaRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendMessage(ctx Context, request *tg.MessagesSendMessageRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendMultiMedia(ctx Context, request *tg.MessagesSendMultiMediaRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendReaction(ctx Context, request *tg.MessagesSendReactionRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendScheduledMessages(ctx Context, request *tg.MessagesSendScheduledMessagesRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendScreenshotNotification(ctx Context, request *tg.MessagesSendScreenshotNotificationRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendVote(ctx Context, request *tg.MessagesSendVoteRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendWebViewData(ctx Context, request *tg.MessagesSendWebViewDataRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSendWebViewResultMessage(ctx Context, request *tg.MessagesSendWebViewResultMessageRequest) (*tg.WebViewMessageSent, error) func github.com/gotd/td/tg.(*Client).MessagesSetBotCallbackAnswer(ctx Context, request *tg.MessagesSetBotCallbackAnswerRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesSetBotPrecheckoutResults(ctx Context, request *tg.MessagesSetBotPrecheckoutResultsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesSetBotShippingResults(ctx Context, request *tg.MessagesSetBotShippingResultsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesSetChatAvailableReactions(ctx Context, request *tg.MessagesSetChatAvailableReactionsRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSetChatTheme(ctx Context, request *tg.MessagesSetChatThemeRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSetChatWallPaper(ctx Context, request *tg.MessagesSetChatWallPaperRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSetDefaultHistoryTTL(ctx Context, period int) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesSetDefaultReaction(ctx Context, reaction tg.ReactionClass) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesSetEncryptedTyping(ctx Context, request *tg.MessagesSetEncryptedTypingRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesSetGameScore(ctx Context, request *tg.MessagesSetGameScoreRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSetHistoryTTL(ctx Context, request *tg.MessagesSetHistoryTTLRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesSetInlineBotResults(ctx Context, request *tg.MessagesSetInlineBotResultsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesSetInlineGameScore(ctx Context, request *tg.MessagesSetInlineGameScoreRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesSetTyping(ctx Context, request *tg.MessagesSetTypingRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesStartBot(ctx Context, request *tg.MessagesStartBotRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesStartHistoryImport(ctx Context, request *tg.MessagesStartHistoryImportRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesToggleBotInAttachMenu(ctx Context, request *tg.MessagesToggleBotInAttachMenuRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesToggleDialogPin(ctx Context, request *tg.MessagesToggleDialogPinRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesToggleNoForwards(ctx Context, request *tg.MessagesToggleNoForwardsRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesTogglePeerTranslations(ctx Context, request *tg.MessagesTogglePeerTranslationsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesToggleStickerSets(ctx Context, request *tg.MessagesToggleStickerSetsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesTranscribeAudio(ctx Context, request *tg.MessagesTranscribeAudioRequest) (*tg.MessagesTranscribedAudio, error) func github.com/gotd/td/tg.(*Client).MessagesTranslateText(ctx Context, request *tg.MessagesTranslateTextRequest) (*tg.MessagesTranslateResult, error) func github.com/gotd/td/tg.(*Client).MessagesUninstallStickerSet(ctx Context, stickerset tg.InputStickerSetClass) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesUnpinAllMessages(ctx Context, request *tg.MessagesUnpinAllMessagesRequest) (*tg.MessagesAffectedHistory, error) func github.com/gotd/td/tg.(*Client).MessagesUpdateDialogFilter(ctx Context, request *tg.MessagesUpdateDialogFilterRequest) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesUpdateDialogFiltersOrder(ctx Context, order []int) (bool, error) func github.com/gotd/td/tg.(*Client).MessagesUpdatePinnedMessage(ctx Context, request *tg.MessagesUpdatePinnedMessageRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).MessagesUploadEncryptedFile(ctx Context, request *tg.MessagesUploadEncryptedFileRequest) (tg.EncryptedFileClass, error) func github.com/gotd/td/tg.(*Client).MessagesUploadImportedMedia(ctx Context, request *tg.MessagesUploadImportedMediaRequest) (tg.MessageMediaClass, error) func github.com/gotd/td/tg.(*Client).MessagesUploadMedia(ctx Context, request *tg.MessagesUploadMediaRequest) (tg.MessageMediaClass, error) func github.com/gotd/td/tg.(*Client).PaymentsApplyGiftCode(ctx Context, slug string) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PaymentsAssignAppStoreTransaction(ctx Context, request *tg.PaymentsAssignAppStoreTransactionRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PaymentsAssignPlayMarketTransaction(ctx Context, request *tg.PaymentsAssignPlayMarketTransactionRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PaymentsCanPurchasePremium(ctx Context, purpose tg.InputStorePaymentPurposeClass) (bool, error) func github.com/gotd/td/tg.(*Client).PaymentsCheckGiftCode(ctx Context, slug string) (*tg.PaymentsCheckedGiftCode, error) func github.com/gotd/td/tg.(*Client).PaymentsClearSavedInfo(ctx Context, request *tg.PaymentsClearSavedInfoRequest) (bool, error) func github.com/gotd/td/tg.(*Client).PaymentsExportInvoice(ctx Context, invoicemedia tg.InputMediaClass) (*tg.PaymentsExportedInvoice, error) func github.com/gotd/td/tg.(*Client).PaymentsGetBankCardData(ctx Context, number string) (*tg.PaymentsBankCardData, error) func github.com/gotd/td/tg.(*Client).PaymentsGetGiveawayInfo(ctx Context, request *tg.PaymentsGetGiveawayInfoRequest) (tg.PaymentsGiveawayInfoClass, error) func github.com/gotd/td/tg.(*Client).PaymentsGetPaymentForm(ctx Context, request *tg.PaymentsGetPaymentFormRequest) (*tg.PaymentsPaymentForm, error) func github.com/gotd/td/tg.(*Client).PaymentsGetPaymentReceipt(ctx Context, request *tg.PaymentsGetPaymentReceiptRequest) (*tg.PaymentsPaymentReceipt, error) func github.com/gotd/td/tg.(*Client).PaymentsGetPremiumGiftCodeOptions(ctx Context, request *tg.PaymentsGetPremiumGiftCodeOptionsRequest) ([]tg.PremiumGiftCodeOption, error) func github.com/gotd/td/tg.(*Client).PaymentsGetSavedInfo(ctx Context) (*tg.PaymentsSavedInfo, error) func github.com/gotd/td/tg.(*Client).PaymentsLaunchPrepaidGiveaway(ctx Context, request *tg.PaymentsLaunchPrepaidGiveawayRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PaymentsSendPaymentForm(ctx Context, request *tg.PaymentsSendPaymentFormRequest) (tg.PaymentsPaymentResultClass, error) func github.com/gotd/td/tg.(*Client).PaymentsValidateRequestedInfo(ctx Context, request *tg.PaymentsValidateRequestedInfoRequest) (*tg.PaymentsValidatedRequestedInfo, error) func github.com/gotd/td/tg.(*Client).PhoneAcceptCall(ctx Context, request *tg.PhoneAcceptCallRequest) (*tg.PhonePhoneCall, error) func github.com/gotd/td/tg.(*Client).PhoneCheckGroupCall(ctx Context, request *tg.PhoneCheckGroupCallRequest) ([]int, error) func github.com/gotd/td/tg.(*Client).PhoneConfirmCall(ctx Context, request *tg.PhoneConfirmCallRequest) (*tg.PhonePhoneCall, error) func github.com/gotd/td/tg.(*Client).PhoneCreateGroupCall(ctx Context, request *tg.PhoneCreateGroupCallRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneDiscardCall(ctx Context, request *tg.PhoneDiscardCallRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneDiscardGroupCall(ctx Context, call tg.InputGroupCall) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneEditGroupCallParticipant(ctx Context, request *tg.PhoneEditGroupCallParticipantRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneEditGroupCallTitle(ctx Context, request *tg.PhoneEditGroupCallTitleRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneExportGroupCallInvite(ctx Context, request *tg.PhoneExportGroupCallInviteRequest) (*tg.PhoneExportedGroupCallInvite, error) func github.com/gotd/td/tg.(*Client).PhoneGetCallConfig(ctx Context) (*tg.DataJSON, error) func github.com/gotd/td/tg.(*Client).PhoneGetGroupCall(ctx Context, request *tg.PhoneGetGroupCallRequest) (*tg.PhoneGroupCall, error) func github.com/gotd/td/tg.(*Client).PhoneGetGroupCallJoinAs(ctx Context, peer tg.InputPeerClass) (*tg.PhoneJoinAsPeers, error) func github.com/gotd/td/tg.(*Client).PhoneGetGroupCallStreamChannels(ctx Context, call tg.InputGroupCall) (*tg.PhoneGroupCallStreamChannels, error) func github.com/gotd/td/tg.(*Client).PhoneGetGroupCallStreamRtmpURL(ctx Context, request *tg.PhoneGetGroupCallStreamRtmpURLRequest) (*tg.PhoneGroupCallStreamRtmpURL, error) func github.com/gotd/td/tg.(*Client).PhoneGetGroupParticipants(ctx Context, request *tg.PhoneGetGroupParticipantsRequest) (*tg.PhoneGroupParticipants, error) func github.com/gotd/td/tg.(*Client).PhoneInviteToGroupCall(ctx Context, request *tg.PhoneInviteToGroupCallRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneJoinGroupCall(ctx Context, request *tg.PhoneJoinGroupCallRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneJoinGroupCallPresentation(ctx Context, request *tg.PhoneJoinGroupCallPresentationRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneLeaveGroupCall(ctx Context, request *tg.PhoneLeaveGroupCallRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneLeaveGroupCallPresentation(ctx Context, call tg.InputGroupCall) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneReceivedCall(ctx Context, peer tg.InputPhoneCall) (bool, error) func github.com/gotd/td/tg.(*Client).PhoneRequestCall(ctx Context, request *tg.PhoneRequestCallRequest) (*tg.PhonePhoneCall, error) func github.com/gotd/td/tg.(*Client).PhoneSaveCallDebug(ctx Context, request *tg.PhoneSaveCallDebugRequest) (bool, error) func github.com/gotd/td/tg.(*Client).PhoneSaveCallLog(ctx Context, request *tg.PhoneSaveCallLogRequest) (bool, error) func github.com/gotd/td/tg.(*Client).PhoneSaveDefaultGroupCallJoinAs(ctx Context, request *tg.PhoneSaveDefaultGroupCallJoinAsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).PhoneSendSignalingData(ctx Context, request *tg.PhoneSendSignalingDataRequest) (bool, error) func github.com/gotd/td/tg.(*Client).PhoneSetCallRating(ctx Context, request *tg.PhoneSetCallRatingRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneStartScheduledGroupCall(ctx Context, call tg.InputGroupCall) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneToggleGroupCallRecord(ctx Context, request *tg.PhoneToggleGroupCallRecordRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneToggleGroupCallSettings(ctx Context, request *tg.PhoneToggleGroupCallSettingsRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhoneToggleGroupCallStartSubscription(ctx Context, request *tg.PhoneToggleGroupCallStartSubscriptionRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).PhotosDeletePhotos(ctx Context, id []tg.InputPhotoClass) ([]int64, error) func github.com/gotd/td/tg.(*Client).PhotosGetUserPhotos(ctx Context, request *tg.PhotosGetUserPhotosRequest) (tg.PhotosPhotosClass, error) func github.com/gotd/td/tg.(*Client).PhotosUpdateProfilePhoto(ctx Context, request *tg.PhotosUpdateProfilePhotoRequest) (*tg.PhotosPhoto, error) func github.com/gotd/td/tg.(*Client).PhotosUploadContactProfilePhoto(ctx Context, request *tg.PhotosUploadContactProfilePhotoRequest) (*tg.PhotosPhoto, error) func github.com/gotd/td/tg.(*Client).PhotosUploadProfilePhoto(ctx Context, request *tg.PhotosUploadProfilePhotoRequest) (*tg.PhotosPhoto, error) func github.com/gotd/td/tg.(*Client).PremiumApplyBoost(ctx Context, request *tg.PremiumApplyBoostRequest) (*tg.PremiumMyBoosts, error) func github.com/gotd/td/tg.(*Client).PremiumGetBoostsList(ctx Context, request *tg.PremiumGetBoostsListRequest) (*tg.PremiumBoostsList, error) func github.com/gotd/td/tg.(*Client).PremiumGetBoostsStatus(ctx Context, peer tg.InputPeerClass) (*tg.PremiumBoostsStatus, error) func github.com/gotd/td/tg.(*Client).PremiumGetMyBoosts(ctx Context) (*tg.PremiumMyBoosts, error) func github.com/gotd/td/tg.(*Client).PremiumGetUserBoosts(ctx Context, request *tg.PremiumGetUserBoostsRequest) (*tg.PremiumBoostsList, error) func github.com/gotd/td/tg.(*Client).StatsGetBroadcastStats(ctx Context, request *tg.StatsGetBroadcastStatsRequest) (*tg.StatsBroadcastStats, error) func github.com/gotd/td/tg.(*Client).StatsGetMegagroupStats(ctx Context, request *tg.StatsGetMegagroupStatsRequest) (*tg.StatsMegagroupStats, error) func github.com/gotd/td/tg.(*Client).StatsGetMessagePublicForwards(ctx Context, request *tg.StatsGetMessagePublicForwardsRequest) (*tg.StatsPublicForwards, error) func github.com/gotd/td/tg.(*Client).StatsGetMessageStats(ctx Context, request *tg.StatsGetMessageStatsRequest) (*tg.StatsMessageStats, error) func github.com/gotd/td/tg.(*Client).StatsGetStoryPublicForwards(ctx Context, request *tg.StatsGetStoryPublicForwardsRequest) (*tg.StatsPublicForwards, error) func github.com/gotd/td/tg.(*Client).StatsGetStoryStats(ctx Context, request *tg.StatsGetStoryStatsRequest) (*tg.StatsStoryStats, error) func github.com/gotd/td/tg.(*Client).StatsLoadAsyncGraph(ctx Context, request *tg.StatsLoadAsyncGraphRequest) (tg.StatsGraphClass, error) func github.com/gotd/td/tg.(*Client).StickersAddStickerToSet(ctx Context, request *tg.StickersAddStickerToSetRequest) (tg.MessagesStickerSetClass, error) func github.com/gotd/td/tg.(*Client).StickersChangeSticker(ctx Context, request *tg.StickersChangeStickerRequest) (tg.MessagesStickerSetClass, error) func github.com/gotd/td/tg.(*Client).StickersChangeStickerPosition(ctx Context, request *tg.StickersChangeStickerPositionRequest) (tg.MessagesStickerSetClass, error) func github.com/gotd/td/tg.(*Client).StickersCheckShortName(ctx Context, shortname string) (bool, error) func github.com/gotd/td/tg.(*Client).StickersCreateStickerSet(ctx Context, request *tg.StickersCreateStickerSetRequest) (tg.MessagesStickerSetClass, error) func github.com/gotd/td/tg.(*Client).StickersDeleteStickerSet(ctx Context, stickerset tg.InputStickerSetClass) (bool, error) func github.com/gotd/td/tg.(*Client).StickersRemoveStickerFromSet(ctx Context, sticker tg.InputDocumentClass) (tg.MessagesStickerSetClass, error) func github.com/gotd/td/tg.(*Client).StickersRenameStickerSet(ctx Context, request *tg.StickersRenameStickerSetRequest) (tg.MessagesStickerSetClass, error) func github.com/gotd/td/tg.(*Client).StickersSetStickerSetThumb(ctx Context, request *tg.StickersSetStickerSetThumbRequest) (tg.MessagesStickerSetClass, error) func github.com/gotd/td/tg.(*Client).StickersSuggestShortName(ctx Context, title string) (*tg.StickersSuggestedShortName, error) func github.com/gotd/td/tg.(*Client).StoriesActivateStealthMode(ctx Context, request *tg.StoriesActivateStealthModeRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).StoriesCanSendStory(ctx Context, peer tg.InputPeerClass) (bool, error) func github.com/gotd/td/tg.(*Client).StoriesDeleteStories(ctx Context, request *tg.StoriesDeleteStoriesRequest) ([]int, error) func github.com/gotd/td/tg.(*Client).StoriesEditStory(ctx Context, request *tg.StoriesEditStoryRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).StoriesExportStoryLink(ctx Context, request *tg.StoriesExportStoryLinkRequest) (*tg.ExportedStoryLink, error) func github.com/gotd/td/tg.(*Client).StoriesGetAllReadPeerStories(ctx Context) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).StoriesGetAllStories(ctx Context, request *tg.StoriesGetAllStoriesRequest) (tg.StoriesAllStoriesClass, error) func github.com/gotd/td/tg.(*Client).StoriesGetChatsToSend(ctx Context) (tg.MessagesChatsClass, error) func github.com/gotd/td/tg.(*Client).StoriesGetPeerMaxIDs(ctx Context, id []tg.InputPeerClass) ([]int, error) func github.com/gotd/td/tg.(*Client).StoriesGetPeerStories(ctx Context, peer tg.InputPeerClass) (*tg.StoriesPeerStories, error) func github.com/gotd/td/tg.(*Client).StoriesGetPinnedStories(ctx Context, request *tg.StoriesGetPinnedStoriesRequest) (*tg.StoriesStories, error) func github.com/gotd/td/tg.(*Client).StoriesGetStoriesArchive(ctx Context, request *tg.StoriesGetStoriesArchiveRequest) (*tg.StoriesStories, error) func github.com/gotd/td/tg.(*Client).StoriesGetStoriesByID(ctx Context, request *tg.StoriesGetStoriesByIDRequest) (*tg.StoriesStories, error) func github.com/gotd/td/tg.(*Client).StoriesGetStoriesViews(ctx Context, request *tg.StoriesGetStoriesViewsRequest) (*tg.StoriesStoryViews, error) func github.com/gotd/td/tg.(*Client).StoriesGetStoryReactionsList(ctx Context, request *tg.StoriesGetStoryReactionsListRequest) (*tg.StoriesStoryReactionsList, error) func github.com/gotd/td/tg.(*Client).StoriesGetStoryViewsList(ctx Context, request *tg.StoriesGetStoryViewsListRequest) (*tg.StoriesStoryViewsList, error) func github.com/gotd/td/tg.(*Client).StoriesIncrementStoryViews(ctx Context, request *tg.StoriesIncrementStoryViewsRequest) (bool, error) func github.com/gotd/td/tg.(*Client).StoriesReadStories(ctx Context, request *tg.StoriesReadStoriesRequest) ([]int, error) func github.com/gotd/td/tg.(*Client).StoriesReport(ctx Context, request *tg.StoriesReportRequest) (bool, error) func github.com/gotd/td/tg.(*Client).StoriesSendReaction(ctx Context, request *tg.StoriesSendReactionRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).StoriesSendStory(ctx Context, request *tg.StoriesSendStoryRequest) (tg.UpdatesClass, error) func github.com/gotd/td/tg.(*Client).StoriesToggleAllStoriesHidden(ctx Context, hidden bool) (bool, error) func github.com/gotd/td/tg.(*Client).StoriesTogglePeerStoriesHidden(ctx Context, request *tg.StoriesTogglePeerStoriesHiddenRequest) (bool, error) func github.com/gotd/td/tg.(*Client).StoriesTogglePinned(ctx Context, request *tg.StoriesTogglePinnedRequest) ([]int, error) func github.com/gotd/td/tg.(*Client).TestUseConfigSimple(ctx Context) (*tg.HelpConfigSimple, error) func github.com/gotd/td/tg.(*Client).TestUseError(ctx Context) (*tg.Error, error) func github.com/gotd/td/tg.(*Client).UpdatesGetChannelDifference(ctx Context, request *tg.UpdatesGetChannelDifferenceRequest) (tg.UpdatesChannelDifferenceClass, error) func github.com/gotd/td/tg.(*Client).UpdatesGetDifference(ctx Context, request *tg.UpdatesGetDifferenceRequest) (tg.UpdatesDifferenceClass, error) func github.com/gotd/td/tg.(*Client).UpdatesGetState(ctx Context) (*tg.UpdatesState, error) func github.com/gotd/td/tg.(*Client).UploadGetCDNFile(ctx Context, request *tg.UploadGetCDNFileRequest) (tg.UploadCDNFileClass, error) func github.com/gotd/td/tg.(*Client).UploadGetCDNFileHashes(ctx Context, request *tg.UploadGetCDNFileHashesRequest) ([]tg.FileHash, error) func github.com/gotd/td/tg.(*Client).UploadGetFile(ctx Context, request *tg.UploadGetFileRequest) (tg.UploadFileClass, error) func github.com/gotd/td/tg.(*Client).UploadGetFileHashes(ctx Context, request *tg.UploadGetFileHashesRequest) ([]tg.FileHash, error) func github.com/gotd/td/tg.(*Client).UploadGetWebFile(ctx Context, request *tg.UploadGetWebFileRequest) (*tg.UploadWebFile, error) func github.com/gotd/td/tg.(*Client).UploadReuploadCDNFile(ctx Context, request *tg.UploadReuploadCDNFileRequest) ([]tg.FileHash, error) func github.com/gotd/td/tg.(*Client).UploadSaveBigFilePart(ctx Context, request *tg.UploadSaveBigFilePartRequest) (bool, error) func github.com/gotd/td/tg.(*Client).UploadSaveFilePart(ctx Context, request *tg.UploadSaveFilePartRequest) (bool, error) func github.com/gotd/td/tg.(*Client).UsersGetFullUser(ctx Context, id tg.InputUserClass) (*tg.UsersUserFull, error) func github.com/gotd/td/tg.(*Client).UsersGetUsers(ctx Context, id []tg.InputUserClass) ([]tg.UserClass, error) func github.com/gotd/td/tg.(*Client).UsersSetSecureValueErrors(ctx Context, request *tg.UsersSetSecureValueErrorsRequest) (bool, error) func github.com/gotd/td/tg.Invoker.Invoke(ctx Context, input bin.Encoder, output bin.Decoder) error func github.com/gotd/td/tg.(*ServerDispatcher).Handle(ctx Context, b *bin.Buffer) (bin.Encoder, error) func github.com/gotd/td/tg.UpdateDispatcher.Handle(ctx Context, updates tg.UpdatesClass) error func github.com/gotd/td/tgerr.FloodWait(ctx Context, err error, opts ...tgerr.FloodWaitOption) (bool, error) func github.com/gotd/td/transport.Conn.Recv(ctx Context, b *bin.Buffer) error func github.com/gotd/td/transport.Conn.Send(ctx Context, b *bin.Buffer) error func go.opentelemetry.io/otel/trace.ContextWithRemoteSpanContext(parent Context, rsc trace.SpanContext) Context func go.opentelemetry.io/otel/trace.ContextWithSpan(parent Context, span trace.Span) Context func go.opentelemetry.io/otel/trace.ContextWithSpanContext(parent Context, sc trace.SpanContext) Context func go.opentelemetry.io/otel/trace.LinkFromContext(ctx Context, attrs ...attribute.KeyValue) trace.Link func go.opentelemetry.io/otel/trace.SpanContextFromContext(ctx Context) trace.SpanContext func go.opentelemetry.io/otel/trace.SpanFromContext(ctx Context) trace.Span func go.opentelemetry.io/otel/trace.Tracer.Start(ctx Context, spanName string, opts ...trace.SpanStartOption) (Context, trace.Span) func golang.org/x/net/internal/socks.(*Dialer).DialContext(ctx Context, network, address string) (net.Conn, error) func golang.org/x/net/internal/socks.(*Dialer).DialWithConn(ctx Context, c net.Conn, network, address string) (net.Addr, error) func golang.org/x/net/internal/socks.(*UsernamePassword).Authenticate(ctx Context, rw io.ReadWriter, auth socks.AuthMethod) error func golang.org/x/net/proxy.Dial(ctx Context, network, address string) (net.Conn, error) func golang.org/x/net/proxy.ContextDialer.DialContext(ctx Context, network, address string) (net.Conn, error) func golang.org/x/net/proxy.(*PerHost).DialContext(ctx Context, network, addr string) (c net.Conn, err error) func golang.org/x/sync/errgroup.WithContext(ctx Context) (*errgroup.Group, Context) func net.(*Dialer).DialContext(ctx Context, network, address string) (net.Conn, error) func net.(*ListenConfig).Listen(ctx Context, network, address string) (net.Listener, error) func net.(*ListenConfig).ListenPacket(ctx Context, network, address string) (net.PacketConn, error) func net.(*Resolver).LookupAddr(ctx Context, addr string) ([]string, error) func net.(*Resolver).LookupCNAME(ctx Context, host string) (string, error) func net.(*Resolver).LookupHost(ctx Context, host string) (addrs []string, err error) func net.(*Resolver).LookupIP(ctx Context, network, host string) ([]net.IP, error) func net.(*Resolver).LookupIPAddr(ctx Context, host string) ([]net.IPAddr, error) func net.(*Resolver).LookupMX(ctx Context, name string) ([]*net.MX, error) func net.(*Resolver).LookupNetIP(ctx Context, network, host string) ([]netip.Addr, error) func net.(*Resolver).LookupNS(ctx Context, name string) ([]*net.NS, error) func net.(*Resolver).LookupPort(ctx Context, network, service string) (port int, err error) func net.(*Resolver).LookupSRV(ctx Context, service, proto, name string) (string, []*net.SRV, error) func net.(*Resolver).LookupTXT(ctx Context, name string) ([]string, error) func net/http.NewRequestWithContext(ctx Context, method, url string, body io.Reader) (*http.Request, error) func net/http.(*Request).Clone(ctx Context) *http.Request func net/http.(*Request).WithContext(ctx Context) *http.Request func net/http.(*Server).Shutdown(ctx Context) error func net/http/httptrace.ContextClientTrace(ctx Context) *httptrace.ClientTrace func net/http/httptrace.WithClientTrace(ctx Context, trace *httptrace.ClientTrace) Context func nhooyr.io/websocket.Dial(ctx Context, u string, opts *websocket.DialOptions) (*websocket.Conn, *http.Response, error) func nhooyr.io/websocket.NetConn(ctx Context, c *websocket.Conn, msgType websocket.MessageType) net.Conn func nhooyr.io/websocket.(*Conn).CloseRead(ctx Context) Context func nhooyr.io/websocket.(*Conn).Ping(ctx Context) error func nhooyr.io/websocket.(*Conn).Read(ctx Context) (websocket.MessageType, []byte, error) func nhooyr.io/websocket.(*Conn).Reader(ctx Context) (websocket.MessageType, io.Reader, error) func nhooyr.io/websocket.(*Conn).Write(ctx Context, typ websocket.MessageType, p []byte) error func nhooyr.io/websocket.(*Conn).Writer(ctx Context, typ websocket.MessageType) (io.WriteCloser, error)
Package-Level Functions (total 19, in which 12 are exported)
AfterFunc arranges to call f in its own goroutine after ctx is done (cancelled or timed out). If ctx is already done, AfterFunc calls f immediately in its own goroutine. Multiple calls to AfterFunc on a context operate independently; one does not replace another. Calling the returned stop function stops the association of ctx with f. It returns true if the call stopped f from being run. If stop returns false, either the context is done and f has been started in its own goroutine; or f was already stopped. The stop function does not wait for f to complete before returning. If the caller needs to know whether f is completed, it must coordinate with f explicitly. If ctx has a "AfterFunc(func()) func() bool" method, AfterFunc will use it to schedule the call.
Background returns a non-nil, empty [Context]. It is never canceled, has no values, and has no deadline. It is typically used by the main function, initialization, and tests, and as the top-level Context for incoming requests.
Cause returns a non-nil error explaining why c was canceled. The first cancellation of c or one of its parents sets the cause. If that cancellation happened via a call to CancelCauseFunc(err), then [Cause] returns err. Otherwise Cause(c) returns the same value as c.Err(). Cause returns nil if c has not been canceled yet.
TODO returns a non-nil, empty [Context]. Code should use context.TODO when it's unclear which Context to use or it is not yet available (because the surrounding function has not yet been extended to accept a Context parameter).
WithCancel returns a copy of parent with a new Done channel. The returned context's Done channel is closed when the returned cancel function is called or when the parent context's Done channel is closed, whichever happens first. Canceling this context releases resources associated with it, so code should call cancel as soon as the operations running in this Context complete.
WithCancelCause behaves like [WithCancel] but returns a [CancelCauseFunc] instead of a [CancelFunc]. Calling cancel with a non-nil error (the "cause") records that error in ctx; it can then be retrieved using Cause(ctx). Calling cancel with nil sets the cause to Canceled. Example use: ctx, cancel := context.WithCancelCause(parent) cancel(myError) ctx.Err() // returns context.Canceled context.Cause(ctx) // returns myError
WithDeadline returns a copy of the parent context with the deadline adjusted to be no later than d. If the parent's deadline is already earlier than d, WithDeadline(parent, d) is semantically equivalent to parent. The returned [Context.Done] channel is closed when the deadline expires, when the returned cancel function is called, or when the parent context's Done channel is closed, whichever happens first. Canceling this context releases resources associated with it, so code should call cancel as soon as the operations running in this [Context] complete.
WithDeadlineCause behaves like [WithDeadline] but also sets the cause of the returned Context when the deadline is exceeded. The returned [CancelFunc] does not set the cause.
WithoutCancel returns a copy of parent that is not canceled when parent is canceled. The returned context returns no Deadline or Err, and its Done channel is nil. Calling [Cause] on the returned context returns nil.
WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)). Canceling this context releases resources associated with it, so code should call cancel as soon as the operations running in this [Context] complete: func slowOperationWithTimeout(ctx context.Context) (Result, error) { ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond) defer cancel() // releases resources if slowOperation completes before timeout elapses return slowOperation(ctx) }
WithTimeoutCause behaves like [WithTimeout] but also sets the cause of the returned Context when the timeout expires. The returned [CancelFunc] does not set the cause.
WithValue returns a copy of parent in which the value associated with key is val. Use context Values only for request-scoped data that transits processes and APIs, not for passing optional parameters to functions. The provided key must be comparable and should not be of type string or any other built-in type to avoid collisions between packages using context. Users of WithValue should define their own types for keys. To avoid allocating when assigning to an interface{}, context keys often have concrete type struct{}. Alternatively, exported context key variables' static type should be a pointer or interface.
Package-Level Variables (total 5, in which 2 are exported)
Canceled is the error returned by [Context.Err] when the context is canceled.
DeadlineExceeded is the error returned by [Context.Err] when the context's deadline passes.