type github.com/gotd/td/telegram.Client

76 uses

	github.com/gotd/td/telegram (current package)
		auth.go#L9: func (c *Client) Auth() *auth.Client {
		auth.go#L16: func (c *Client) QR() qrlogin.QR {
		bot.go#L12: func RunUntilCanceled(ctx context.Context, client *Client) error {
		bot.go#L25: 	setup func(ctx context.Context, client *Client) error,
		bot.go#L26: 	cb func(ctx context.Context, client *Client) error,
		builder.go#L85: func ClientFromEnvironment(opts Options) (*Client, error) {
		builder.go#L146: func TestClient(ctx context.Context, opts Options, cb func(ctx context.Context, client *Client) error) error {
		cdn.go#L131: func (c *Client) cachedCDNKeys() ([]exchange.PublicKey, bool, uint64) {
		cdn.go#L138: func (c *Client) cachedCDNKeysForDC(dcID int) ([]exchange.PublicKey, bool) {
		cdn.go#L145: func (c *Client) cdnConfigFetchContext(caller context.Context) context.Context {
		cdn.go#L157: func (c *Client) loadCDNKeys(ctx context.Context) (fetchedCDNKeys, error) {
		cdn.go#L189: func (c *Client) fetchCDNKeys(ctx context.Context) ([]exchange.PublicKey, error) {
		cdn.go#L230: func (c *Client) refreshCDNKeys(ctx context.Context) ([]exchange.PublicKey, error) {
		cdn.go#L261: func (c *Client) fetchCDNKeysForDC(ctx context.Context, dcID int) ([]exchange.PublicKey, error) {
		cdn_conn_dead.go#L15: func (c *Client) handleCDNConnDead(dcID int, err error) {
		cfg.go#L31: func (c *Client) Config() tg.Config {
		cfg.go#L35: func (c *Client) fetchConfig(ctx context.Context) {
		client.go#L57: type Client struct {
		client.go#L169: func NewClient(appID int, appHash string, opt Options) *Client {
		client.go#L176: 	client := &Client{
		client.go#L252: func (c *Client) replaceConn(conn clientConn) {
		client.go#L259: func (c *Client) init() {
		conn_builder.go#L18: 	client *Client
		conn_builder.go#L29: func (c *Client) asHandler() manager.Handler {
		conn_builder.go#L36: 	client *Client
		conn_builder.go#L49: func (c *Client) asCDNHandler() manager.Handler {
		conn_builder.go#L75: func (c *Client) dcList() dcs.List {
		conn_builder.go#L84: func (c *Client) primaryDC(dc int) mtproto.Dialer {
		conn_builder.go#L90: func (c *Client) createPrimaryConn(setup manager.SetupCallback) pool.Conn {
		conn_builder.go#L94: func (c *Client) createConn(
		connect.go#L19: func (c *Client) runUntilRestart(ctx context.Context) error {
		connect.go#L94: func (c *Client) isPermanentError(err error) bool {
		connect.go#L108: func (c *Client) reconnectUntilClosed(ctx context.Context) error {
		connect.go#L135: func (c *Client) onReady() {
		connect.go#L145: func (c *Client) resetReady() {
		connect.go#L158: func (c *Client) Run(ctx context.Context, f func(ctx context.Context) error) (err error) {
		connection_state.go#L36: func (c *Client) notifyConnectionState(s ConnectionState) {
		dc_transfer.go#L11: func (c *Client) dcTransferSetup(dcID int) manager.SetupCallback {
		download.go#L14: 	client *Client
		download.go#L81: func (c *Client) Downloader() *downloader.Downloader {
		download.go#L87: func (c *Client) Download(location tg.InputFileLocationClass) *downloader.Builder {
		download.go#L92: func (c *Client) DownloadWeb(location tg.InputWebFileLocationClass) *downloader.Builder {
		handle_updates.go#L15: func (c *Client) updateInterceptor(updates ...tg.UpdateClass) {
		handle_updates.go#L24: func (c *Client) processUpdates(updates tg.UpdatesClass) error {
		handle_updates.go#L49: func (c *Client) handleUpdates(b *bin.Buffer) error {
		invoke.go#L22: func (c *Client) API() *tg.Client {
		invoke.go#L28: func (c *Client) Invoke(ctx context.Context, input bin.Encoder, output bin.Decoder) error {
		invoke.go#L58: func (c *Client) invokeDirect(ctx context.Context, input bin.Encoder, output bin.Decoder) error {
		invoke.go#L92: func (c *Client) invokeConn(ctx context.Context, input bin.Encoder, output bin.Decoder) error {
		migrate_to_dc.go#L11: func (c *Client) ensureRestart(ctx context.Context) error {
		migrate_to_dc.go#L31: func (c *Client) invokeMigrate(ctx context.Context, dcID int, input bin.Encoder, output bin.Decoder) error {
		migrate_to_dc.go#L59: func (c *Client) migrateToDc(ctx context.Context, dcID int) error {
		migrate_to_dc.go#L65: func (c *Client) MigrateTo(ctx context.Context, dcID int) error {
		pfs.go#L14: func (c *Client) handlePrimaryConnDead(err error) {
		pfs.go#L33: func (c *Client) handleDCConnDead(dcID int, err error) {
		ping.go#L8: func (c *Client) Ping(ctx context.Context) error {
		pool.go#L26: func (c *Client) createPool(dc int, max int64, creator func() pool.Conn) (*pool.DC, error) {
		pool.go#L42: func (c *Client) Pool(max int64) (CloseInvoker, error) {
		pool.go#L60: func (c *Client) dc(
		pool.go#L195: func (c *Client) DC(ctx context.Context, dc int, max int64) (CloseInvoker, error) {
		pool.go#L201: func (c *Client) MediaOnly(ctx context.Context, dc int, max int64) (CloseInvoker, error) {
		pool.go#L209: func (c *Client) CDN(ctx context.Context, dc int, max int64) (CloseInvoker, error) {
		rand_int64.go#L8: func (c *Client) RandInt64() (int64, error) {
		self.go#L14: func (c *Client) Self(ctx context.Context) (*tg.User, error) {
		send_message.go#L12: func (c *Client) SendMessage(ctx context.Context, req *tg.MessagesSendMessageRequest) error {
		session.go#L18: func (c *Client) restoreConnection(ctx context.Context) error {
		session.go#L64: func (c *Client) saveSession(cfg tg.Config, s mtproto.Session) error {
		session.go#L101: func (c *Client) onSession(cfg tg.Config, s mtproto.Session) error {
		session.go#L125: func (c *Client) onCDNSession(cfg tg.Config, s mtproto.Session) error {
		session.go#L132: func (c *Client) storeDCSess(target map[int]*pool.SyncSession, data pool.Session) {
		sub_conns.go#L12: func (c *Client) invokeSub(ctx context.Context, dc int, input bin.Encoder, output bin.Decoder) error {
		tdlib_json.go#L71: func (c *Client) InvokeRawJSON(ctx context.Context, jsonRequest string) (jsonResponse string, err error) {
		transfer.go#L11: func (c *Client) exportAuth(ctx context.Context, dcID int) (*tg.AuthExportedAuthorization, error) {
		transfer.go#L26: type AuthTransferHandler func(ctx context.Context, client *Client, fn func(context.Context) error) error
		transfer.go#L28: func noopOnTransfer(ctx context.Context, _ *Client, fn func(context.Context) error) error {
		transfer.go#L34: func (c *Client) transfer(ctx context.Context, to *tg.Client, dc int) (tg.AuthAuthorizationClass, error) {