type github.com/gotd/td/tg.Config
104 uses
github.com/gotd/td/tg (current package)
tl_config_gen.go#L38: type Config struct {
tl_config_gen.go#L218: _ bin.Encoder = &Config{}
tl_config_gen.go#L219: _ bin.Decoder = &Config{}
tl_config_gen.go#L220: _ bin.BareEncoder = &Config{}
tl_config_gen.go#L221: _ bin.BareDecoder = &Config{}
tl_config_gen.go#L224: func (c *Config) Zero() bool {
tl_config_gen.go#L377: func (c *Config) String() string {
tl_config_gen.go#L381: type Alias Config
tl_config_gen.go#L386: func (c *Config) FillFrom(from interface {
tl_config_gen.go#L520: func (*Config) TypeID() uint32 {
tl_config_gen.go#L525: func (*Config) TypeName() string {
tl_config_gen.go#L530: func (c *Config) TypeInfo() tdp.Type {
tl_config_gen.go#L749: func (c *Config) SetFlags() {
tl_config_gen.go#L801: func (c *Config) Encode(b *bin.Buffer) error {
tl_config_gen.go#L810: func (c *Config) EncodeBare(b *bin.Buffer) error {
tl_config_gen.go#L896: func (c *Config) Decode(b *bin.Buffer) error {
tl_config_gen.go#L907: func (c *Config) DecodeBare(b *bin.Buffer) error {
tl_config_gen.go#L1229: func (c *Config) SetDefaultP2PContacts(value bool) {
tl_config_gen.go#L1240: func (c *Config) GetDefaultP2PContacts() (value bool) {
tl_config_gen.go#L1248: func (c *Config) SetPreloadFeaturedStickers(value bool) {
tl_config_gen.go#L1259: func (c *Config) GetPreloadFeaturedStickers() (value bool) {
tl_config_gen.go#L1267: func (c *Config) SetRevokePmInbox(value bool) {
tl_config_gen.go#L1278: func (c *Config) GetRevokePmInbox() (value bool) {
tl_config_gen.go#L1286: func (c *Config) SetBlockedMode(value bool) {
tl_config_gen.go#L1297: func (c *Config) GetBlockedMode() (value bool) {
tl_config_gen.go#L1305: func (c *Config) SetForceTryIpv6(value bool) {
tl_config_gen.go#L1316: func (c *Config) GetForceTryIpv6() (value bool) {
tl_config_gen.go#L1324: func (c *Config) GetDate() (value int) {
tl_config_gen.go#L1332: func (c *Config) GetExpires() (value int) {
tl_config_gen.go#L1340: func (c *Config) GetTestMode() (value bool) {
tl_config_gen.go#L1348: func (c *Config) GetThisDC() (value int) {
tl_config_gen.go#L1356: func (c *Config) GetDCOptions() (value []DCOption) {
tl_config_gen.go#L1364: func (c *Config) GetDCTxtDomainName() (value string) {
tl_config_gen.go#L1372: func (c *Config) GetChatSizeMax() (value int) {
tl_config_gen.go#L1380: func (c *Config) GetMegagroupSizeMax() (value int) {
tl_config_gen.go#L1388: func (c *Config) GetForwardedCountMax() (value int) {
tl_config_gen.go#L1396: func (c *Config) GetOnlineUpdatePeriodMs() (value int) {
tl_config_gen.go#L1404: func (c *Config) GetOfflineBlurTimeoutMs() (value int) {
tl_config_gen.go#L1412: func (c *Config) GetOfflineIdleTimeoutMs() (value int) {
tl_config_gen.go#L1420: func (c *Config) GetOnlineCloudTimeoutMs() (value int) {
tl_config_gen.go#L1428: func (c *Config) GetNotifyCloudDelayMs() (value int) {
tl_config_gen.go#L1436: func (c *Config) GetNotifyDefaultDelayMs() (value int) {
tl_config_gen.go#L1444: func (c *Config) GetPushChatPeriodMs() (value int) {
tl_config_gen.go#L1452: func (c *Config) GetPushChatLimit() (value int) {
tl_config_gen.go#L1460: func (c *Config) GetEditTimeLimit() (value int) {
tl_config_gen.go#L1468: func (c *Config) GetRevokeTimeLimit() (value int) {
tl_config_gen.go#L1476: func (c *Config) GetRevokePmTimeLimit() (value int) {
tl_config_gen.go#L1484: func (c *Config) GetRatingEDecay() (value int) {
tl_config_gen.go#L1492: func (c *Config) GetStickersRecentLimit() (value int) {
tl_config_gen.go#L1500: func (c *Config) GetChannelsReadMediaPeriod() (value int) {
tl_config_gen.go#L1508: func (c *Config) SetTmpSessions(value int) {
tl_config_gen.go#L1515: func (c *Config) GetTmpSessions() (value int, ok bool) {
tl_config_gen.go#L1526: func (c *Config) GetCallReceiveTimeoutMs() (value int) {
tl_config_gen.go#L1534: func (c *Config) GetCallRingTimeoutMs() (value int) {
tl_config_gen.go#L1542: func (c *Config) GetCallConnectTimeoutMs() (value int) {
tl_config_gen.go#L1550: func (c *Config) GetCallPacketTimeoutMs() (value int) {
tl_config_gen.go#L1558: func (c *Config) GetMeURLPrefix() (value string) {
tl_config_gen.go#L1566: func (c *Config) SetAutoupdateURLPrefix(value string) {
tl_config_gen.go#L1573: func (c *Config) GetAutoupdateURLPrefix() (value string, ok bool) {
tl_config_gen.go#L1584: func (c *Config) SetGifSearchUsername(value string) {
tl_config_gen.go#L1591: func (c *Config) GetGifSearchUsername() (value string, ok bool) {
tl_config_gen.go#L1602: func (c *Config) SetVenueSearchUsername(value string) {
tl_config_gen.go#L1609: func (c *Config) GetVenueSearchUsername() (value string, ok bool) {
tl_config_gen.go#L1620: func (c *Config) SetImgSearchUsername(value string) {
tl_config_gen.go#L1627: func (c *Config) GetImgSearchUsername() (value string, ok bool) {
tl_config_gen.go#L1638: func (c *Config) SetStaticMapsProvider(value string) {
tl_config_gen.go#L1645: func (c *Config) GetStaticMapsProvider() (value string, ok bool) {
tl_config_gen.go#L1656: func (c *Config) GetCaptionLengthMax() (value int) {
tl_config_gen.go#L1664: func (c *Config) GetMessageLengthMax() (value int) {
tl_config_gen.go#L1672: func (c *Config) GetWebfileDCID() (value int) {
tl_config_gen.go#L1680: func (c *Config) SetSuggestedLangCode(value string) {
tl_config_gen.go#L1687: func (c *Config) GetSuggestedLangCode() (value string, ok bool) {
tl_config_gen.go#L1698: func (c *Config) SetLangPackVersion(value int) {
tl_config_gen.go#L1705: func (c *Config) GetLangPackVersion() (value int, ok bool) {
tl_config_gen.go#L1716: func (c *Config) SetBaseLangPackVersion(value int) {
tl_config_gen.go#L1723: func (c *Config) GetBaseLangPackVersion() (value int, ok bool) {
tl_config_gen.go#L1734: func (c *Config) SetReactionsDefault(value ReactionClass) {
tl_config_gen.go#L1741: func (c *Config) GetReactionsDefault() (value ReactionClass, ok bool) {
tl_config_gen.go#L1752: func (c *Config) SetAutologinToken(value string) {
tl_config_gen.go#L1759: func (c *Config) GetAutologinToken() (value string, ok bool) {
tl_help_get_config_gen.go#L145: func (c *Client) HelpGetConfig(ctx context.Context) (*Config, error) {
tl_help_get_config_gen.go#L146: var result Config
tl_registry_gen.go#L5754: ConfigTypeID: func() bin.Object { return &Config{} },
tl_server_gen.go#L8800: func (s *ServerDispatcher) OnHelpGetConfig(f func(ctx context.Context) (*Config, error)) {
github.com/gotd/td/session
session.go#L56: func ConfigFromTG(c tg.Config) Config {
session.go#L74: func (c Config) TG() tg.Config {
session.go#L75: return tg.Config{
github.com/gotd/td/telegram
cfg.go#L31: func (c *Client) Config() tg.Config {
client.go#L262: cfg: manager.NewAtomicConfig(tg.Config{
client.go#L361: c.cfg = manager.NewAtomicConfig(tg.Config{})
conn_builder.go#L21: func (c clientHandler) OnSession(cfg tg.Config, s mtproto.Session) error {
conn_builder.go#L51: func (c cdnClientHandler) OnSession(cfg tg.Config, s mtproto.Session) error {
session.go#L283: func (c *Client) saveSession(cfg tg.Config, s mtproto.Session) error {
session.go#L339: func (c *Client) onSession(cfg tg.Config, s mtproto.Session) error {
session.go#L375: func (c *Client) onCDNSession(cfg tg.Config, s mtproto.Session) error {
github.com/gotd/td/telegram/internal/manager
conn.go#L72: cfg tg.Config
conn.go#L438: c.cfg = tg.Config{ThisDC: c.dc}
conn.go#L450: var cfg tg.Config
handler.go#L11: OnSession(cfg tg.Config, s mtproto.Session) error
handler.go#L25: func (n NoopHandler) OnSession(cfg tg.Config, s mtproto.Session) error {
sync.go#L15: func NewAtomicConfig(cfg tg.Config) *AtomicConfig {
sync.go#L22: func (c *AtomicConfig) Load() tg.Config {
sync.go#L23: return c.Value.Load().(tg.Config)
sync.go#L27: func (c *AtomicConfig) Store(cfg tg.Config) {
 |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |