Documentation ¶
Index ¶
- Constants
- func NamesMap() map[string]uint32
- func TypesConstructorMap() map[uint32]func() bin.Object
- func TypesMap() map[uint32]string
- type Client
- type Config
- func (c *Config) Decode(b *bin.Buffer) error
- func (c *Config) Encode(b *bin.Buffer) error
- func (c *Config) FillFrom(from interface{ ... })
- func (c *Config) GetAutoupdateURLPrefix() (value string, ok bool)
- func (c *Config) GetBaseLangPackVersion() (value int, ok bool)
- func (c *Config) GetBlockedMode() (value bool)
- func (c *Config) GetCallConnectTimeoutMs() (value int)
- func (c *Config) GetCallPacketTimeoutMs() (value int)
- func (c *Config) GetCallReceiveTimeoutMs() (value int)
- func (c *Config) GetCallRingTimeoutMs() (value int)
- func (c *Config) GetCaptionLengthMax() (value int)
- func (c *Config) GetChannelsReadMediaPeriod() (value int)
- func (c *Config) GetChatSizeMax() (value int)
- func (c *Config) GetDCOptions() (value []DCOption)
- func (c *Config) GetDCTxtDomainName() (value string)
- func (c *Config) GetDate() (value int)
- func (c *Config) GetDefaultP2PContacts() (value bool)
- func (c *Config) GetEditTimeLimit() (value int)
- func (c *Config) GetExpires() (value int)
- func (c *Config) GetForwardedCountMax() (value int)
- func (c *Config) GetGifSearchUsername() (value string, ok bool)
- func (c *Config) GetIgnorePhoneEntities() (value bool)
- func (c *Config) GetImgSearchUsername() (value string, ok bool)
- func (c *Config) GetLangPackVersion() (value int, ok bool)
- func (c *Config) GetMeURLPrefix() (value string)
- func (c *Config) GetMegagroupSizeMax() (value int)
- func (c *Config) GetMessageLengthMax() (value int)
- func (c *Config) GetNotifyCloudDelayMs() (value int)
- func (c *Config) GetNotifyDefaultDelayMs() (value int)
- func (c *Config) GetOfflineBlurTimeoutMs() (value int)
- func (c *Config) GetOfflineIdleTimeoutMs() (value int)
- func (c *Config) GetOnlineCloudTimeoutMs() (value int)
- func (c *Config) GetOnlineUpdatePeriodMs() (value int)
- func (c *Config) GetPFSEnabled() (value bool)
- func (c *Config) GetPhonecallsEnabled() (value bool)
- func (c *Config) GetPinnedDialogsCountMax() (value int)
- func (c *Config) GetPinnedInfolderCountMax() (value int)
- func (c *Config) GetPreloadFeaturedStickers() (value bool)
- func (c *Config) GetPushChatLimit() (value int)
- func (c *Config) GetPushChatPeriodMs() (value int)
- func (c *Config) GetRatingEDecay() (value int)
- func (c *Config) GetRevokePmInbox() (value bool)
- func (c *Config) GetRevokePmTimeLimit() (value int)
- func (c *Config) GetRevokeTimeLimit() (value int)
- func (c *Config) GetSavedGifsLimit() (value int)
- func (c *Config) GetStaticMapsProvider() (value string, ok bool)
- func (c *Config) GetStickersFavedLimit() (value int)
- func (c *Config) GetStickersRecentLimit() (value int)
- func (c *Config) GetSuggestedLangCode() (value string, ok bool)
- func (c *Config) GetTestMode() (value bool)
- func (c *Config) GetThisDC() (value int)
- func (c *Config) GetTmpSessions() (value int, ok bool)
- func (c *Config) GetVenueSearchUsername() (value string, ok bool)
- func (c *Config) GetWebfileDCID() (value int)
- func (c *Config) SetAutoupdateURLPrefix(value string)
- func (c *Config) SetBaseLangPackVersion(value int)
- func (c *Config) SetBlockedMode(value bool)
- func (c *Config) SetDefaultP2PContacts(value bool)
- func (c *Config) SetGifSearchUsername(value string)
- func (c *Config) SetIgnorePhoneEntities(value bool)
- func (c *Config) SetImgSearchUsername(value string)
- func (c *Config) SetLangPackVersion(value int)
- func (c *Config) SetPFSEnabled(value bool)
- func (c *Config) SetPhonecallsEnabled(value bool)
- func (c *Config) SetPreloadFeaturedStickers(value bool)
- func (c *Config) SetRevokePmInbox(value bool)
- func (c *Config) SetStaticMapsProvider(value string)
- func (c *Config) SetSuggestedLangCode(value string)
- func (c *Config) SetTmpSessions(value int)
- func (c *Config) SetVenueSearchUsername(value string)
- func (c *Config) String() string
- func (*Config) TypeID() uint32
- func (c *Config) TypeInfo() tdp.Type
- func (*Config) TypeName() string
- func (c *Config) Zero() bool
- type DCOption
- func (d *DCOption) Decode(b *bin.Buffer) error
- func (d *DCOption) Encode(b *bin.Buffer) error
- func (d *DCOption) FillFrom(from interface{ ... })
- func (d *DCOption) GetCDN() (value bool)
- func (d *DCOption) GetID() (value int)
- func (d *DCOption) GetIPAddress() (value string)
- func (d *DCOption) GetIpv6() (value bool)
- func (d *DCOption) GetMediaOnly() (value bool)
- func (d *DCOption) GetPort() (value int)
- func (d *DCOption) GetSecret() (value []byte, ok bool)
- func (d *DCOption) GetStatic() (value bool)
- func (d *DCOption) GetTCPObfuscatedOnly() (value bool)
- func (d *DCOption) SetCDN(value bool)
- func (d *DCOption) SetIpv6(value bool)
- func (d *DCOption) SetMediaOnly(value bool)
- func (d *DCOption) SetSecret(value []byte)
- func (d *DCOption) SetStatic(value bool)
- func (d *DCOption) SetTCPObfuscatedOnly(value bool)
- func (d *DCOption) String() string
- func (*DCOption) TypeID() uint32
- func (d *DCOption) TypeInfo() tdp.Type
- func (*DCOption) TypeName() string
- func (d *DCOption) Zero() bool
- type Invoker
Constants ¶
const ConfigTypeID = 0x330b4067
ConfigTypeID is TL type id of Config.
const DCOptionTypeID = 0x18b7a10d
DCOptionTypeID is TL type id of DCOption.
Variables ¶
This section is empty.
Functions ¶
func TypesConstructorMap ¶
TypesConstructorMap maps type ids to constructors.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implement methods for calling functions from TL schema via Invoker.
type Config ¶
type Config struct { // Flags field of Config. Flags bin.Fields // PhonecallsEnabled field of Config. PhonecallsEnabled bool // DefaultP2PContacts field of Config. DefaultP2PContacts bool // PreloadFeaturedStickers field of Config. PreloadFeaturedStickers bool // IgnorePhoneEntities field of Config. IgnorePhoneEntities bool // RevokePmInbox field of Config. RevokePmInbox bool // BlockedMode field of Config. BlockedMode bool // PFSEnabled field of Config. PFSEnabled bool // Date field of Config. Date int // Expires field of Config. Expires int // TestMode field of Config. TestMode bool // ThisDC field of Config. ThisDC int // DCOptions field of Config. DCOptions []DCOption // DCTxtDomainName field of Config. DCTxtDomainName string // ChatSizeMax field of Config. ChatSizeMax int // MegagroupSizeMax field of Config. MegagroupSizeMax int // ForwardedCountMax field of Config. ForwardedCountMax int // OnlineUpdatePeriodMs field of Config. OnlineUpdatePeriodMs int // OfflineBlurTimeoutMs field of Config. OfflineBlurTimeoutMs int // OfflineIdleTimeoutMs field of Config. OfflineIdleTimeoutMs int // OnlineCloudTimeoutMs field of Config. OnlineCloudTimeoutMs int // NotifyCloudDelayMs field of Config. NotifyCloudDelayMs int // NotifyDefaultDelayMs field of Config. NotifyDefaultDelayMs int // PushChatPeriodMs field of Config. PushChatPeriodMs int // PushChatLimit field of Config. PushChatLimit int // SavedGifsLimit field of Config. SavedGifsLimit int // EditTimeLimit field of Config. EditTimeLimit int // RevokeTimeLimit field of Config. RevokeTimeLimit int // RevokePmTimeLimit field of Config. RevokePmTimeLimit int // RatingEDecay field of Config. RatingEDecay int // StickersRecentLimit field of Config. StickersRecentLimit int // StickersFavedLimit field of Config. StickersFavedLimit int // ChannelsReadMediaPeriod field of Config. ChannelsReadMediaPeriod int // TmpSessions field of Config. // // Use SetTmpSessions and GetTmpSessions helpers. TmpSessions int // PinnedDialogsCountMax field of Config. PinnedDialogsCountMax int // PinnedInfolderCountMax field of Config. PinnedInfolderCountMax int // CallReceiveTimeoutMs field of Config. CallReceiveTimeoutMs int // CallRingTimeoutMs field of Config. CallRingTimeoutMs int // CallConnectTimeoutMs field of Config. CallConnectTimeoutMs int // CallPacketTimeoutMs field of Config. CallPacketTimeoutMs int // MeURLPrefix field of Config. MeURLPrefix string // AutoupdateURLPrefix field of Config. // // Use SetAutoupdateURLPrefix and GetAutoupdateURLPrefix helpers. AutoupdateURLPrefix string // GifSearchUsername field of Config. // // Use SetGifSearchUsername and GetGifSearchUsername helpers. GifSearchUsername string // VenueSearchUsername field of Config. // // Use SetVenueSearchUsername and GetVenueSearchUsername helpers. VenueSearchUsername string // ImgSearchUsername field of Config. // // Use SetImgSearchUsername and GetImgSearchUsername helpers. ImgSearchUsername string // StaticMapsProvider field of Config. // // Use SetStaticMapsProvider and GetStaticMapsProvider helpers. StaticMapsProvider string // CaptionLengthMax field of Config. CaptionLengthMax int // MessageLengthMax field of Config. MessageLengthMax int // WebfileDCID field of Config. WebfileDCID int // SuggestedLangCode field of Config. // // Use SetSuggestedLangCode and GetSuggestedLangCode helpers. SuggestedLangCode string // LangPackVersion field of Config. // // Use SetLangPackVersion and GetLangPackVersion helpers. LangPackVersion int // BaseLangPackVersion field of Config. // // Use SetBaseLangPackVersion and GetBaseLangPackVersion helpers. BaseLangPackVersion int }
Config represents TL type `config#330b4067`.
func (*Config) FillFrom ¶
func (c *Config) FillFrom(from interface { GetPhonecallsEnabled() (value bool) GetDefaultP2PContacts() (value bool) GetPreloadFeaturedStickers() (value bool) GetIgnorePhoneEntities() (value bool) GetRevokePmInbox() (value bool) GetBlockedMode() (value bool) GetPFSEnabled() (value bool) GetDate() (value int) GetExpires() (value int) GetTestMode() (value bool) GetThisDC() (value int) GetDCOptions() (value []DCOption) GetDCTxtDomainName() (value string) GetChatSizeMax() (value int) GetMegagroupSizeMax() (value int) GetForwardedCountMax() (value int) GetOnlineUpdatePeriodMs() (value int) GetOfflineBlurTimeoutMs() (value int) GetOfflineIdleTimeoutMs() (value int) GetOnlineCloudTimeoutMs() (value int) GetNotifyCloudDelayMs() (value int) GetNotifyDefaultDelayMs() (value int) GetPushChatPeriodMs() (value int) GetPushChatLimit() (value int) GetSavedGifsLimit() (value int) GetEditTimeLimit() (value int) GetRevokeTimeLimit() (value int) GetRevokePmTimeLimit() (value int) GetRatingEDecay() (value int) GetStickersRecentLimit() (value int) GetStickersFavedLimit() (value int) GetChannelsReadMediaPeriod() (value int) GetTmpSessions() (value int, ok bool) GetPinnedDialogsCountMax() (value int) GetPinnedInfolderCountMax() (value int) GetCallReceiveTimeoutMs() (value int) GetCallRingTimeoutMs() (value int) GetCallConnectTimeoutMs() (value int) GetCallPacketTimeoutMs() (value int) GetMeURLPrefix() (value string) GetAutoupdateURLPrefix() (value string, ok bool) GetGifSearchUsername() (value string, ok bool) GetVenueSearchUsername() (value string, ok bool) GetImgSearchUsername() (value string, ok bool) GetStaticMapsProvider() (value string, ok bool) GetCaptionLengthMax() (value int) GetMessageLengthMax() (value int) GetWebfileDCID() (value int) GetSuggestedLangCode() (value string, ok bool) GetLangPackVersion() (value int, ok bool) GetBaseLangPackVersion() (value int, ok bool) })
FillFrom fills Config from given interface.
func (*Config) GetAutoupdateURLPrefix ¶
GetAutoupdateURLPrefix returns value of AutoupdateURLPrefix conditional field and boolean which is true if field was set.
func (*Config) GetBaseLangPackVersion ¶
GetBaseLangPackVersion returns value of BaseLangPackVersion conditional field and boolean which is true if field was set.
func (*Config) GetBlockedMode ¶
GetBlockedMode returns value of BlockedMode conditional field.
func (*Config) GetCallConnectTimeoutMs ¶
GetCallConnectTimeoutMs returns value of CallConnectTimeoutMs field.
func (*Config) GetCallPacketTimeoutMs ¶
GetCallPacketTimeoutMs returns value of CallPacketTimeoutMs field.
func (*Config) GetCallReceiveTimeoutMs ¶
GetCallReceiveTimeoutMs returns value of CallReceiveTimeoutMs field.
func (*Config) GetCallRingTimeoutMs ¶
GetCallRingTimeoutMs returns value of CallRingTimeoutMs field.
func (*Config) GetCaptionLengthMax ¶
GetCaptionLengthMax returns value of CaptionLengthMax field.
func (*Config) GetChannelsReadMediaPeriod ¶
GetChannelsReadMediaPeriod returns value of ChannelsReadMediaPeriod field.
func (*Config) GetChatSizeMax ¶
GetChatSizeMax returns value of ChatSizeMax field.
func (*Config) GetDCOptions ¶
GetDCOptions returns value of DCOptions field.
func (*Config) GetDCTxtDomainName ¶
GetDCTxtDomainName returns value of DCTxtDomainName field.
func (*Config) GetDefaultP2PContacts ¶
GetDefaultP2PContacts returns value of DefaultP2PContacts conditional field.
func (*Config) GetEditTimeLimit ¶
GetEditTimeLimit returns value of EditTimeLimit field.
func (*Config) GetExpires ¶
GetExpires returns value of Expires field.
func (*Config) GetForwardedCountMax ¶
GetForwardedCountMax returns value of ForwardedCountMax field.
func (*Config) GetGifSearchUsername ¶
GetGifSearchUsername returns value of GifSearchUsername conditional field and boolean which is true if field was set.
func (*Config) GetIgnorePhoneEntities ¶
GetIgnorePhoneEntities returns value of IgnorePhoneEntities conditional field.
func (*Config) GetImgSearchUsername ¶
GetImgSearchUsername returns value of ImgSearchUsername conditional field and boolean which is true if field was set.
func (*Config) GetLangPackVersion ¶
GetLangPackVersion returns value of LangPackVersion conditional field and boolean which is true if field was set.
func (*Config) GetMeURLPrefix ¶
GetMeURLPrefix returns value of MeURLPrefix field.
func (*Config) GetMegagroupSizeMax ¶
GetMegagroupSizeMax returns value of MegagroupSizeMax field.
func (*Config) GetMessageLengthMax ¶
GetMessageLengthMax returns value of MessageLengthMax field.
func (*Config) GetNotifyCloudDelayMs ¶
GetNotifyCloudDelayMs returns value of NotifyCloudDelayMs field.
func (*Config) GetNotifyDefaultDelayMs ¶
GetNotifyDefaultDelayMs returns value of NotifyDefaultDelayMs field.
func (*Config) GetOfflineBlurTimeoutMs ¶
GetOfflineBlurTimeoutMs returns value of OfflineBlurTimeoutMs field.
func (*Config) GetOfflineIdleTimeoutMs ¶
GetOfflineIdleTimeoutMs returns value of OfflineIdleTimeoutMs field.
func (*Config) GetOnlineCloudTimeoutMs ¶
GetOnlineCloudTimeoutMs returns value of OnlineCloudTimeoutMs field.
func (*Config) GetOnlineUpdatePeriodMs ¶
GetOnlineUpdatePeriodMs returns value of OnlineUpdatePeriodMs field.
func (*Config) GetPFSEnabled ¶
GetPFSEnabled returns value of PFSEnabled conditional field.
func (*Config) GetPhonecallsEnabled ¶
GetPhonecallsEnabled returns value of PhonecallsEnabled conditional field.
func (*Config) GetPinnedDialogsCountMax ¶
GetPinnedDialogsCountMax returns value of PinnedDialogsCountMax field.
func (*Config) GetPinnedInfolderCountMax ¶
GetPinnedInfolderCountMax returns value of PinnedInfolderCountMax field.
func (*Config) GetPreloadFeaturedStickers ¶
GetPreloadFeaturedStickers returns value of PreloadFeaturedStickers conditional field.
func (*Config) GetPushChatLimit ¶
GetPushChatLimit returns value of PushChatLimit field.
func (*Config) GetPushChatPeriodMs ¶
GetPushChatPeriodMs returns value of PushChatPeriodMs field.
func (*Config) GetRatingEDecay ¶
GetRatingEDecay returns value of RatingEDecay field.
func (*Config) GetRevokePmInbox ¶
GetRevokePmInbox returns value of RevokePmInbox conditional field.
func (*Config) GetRevokePmTimeLimit ¶
GetRevokePmTimeLimit returns value of RevokePmTimeLimit field.
func (*Config) GetRevokeTimeLimit ¶
GetRevokeTimeLimit returns value of RevokeTimeLimit field.
func (*Config) GetSavedGifsLimit ¶
GetSavedGifsLimit returns value of SavedGifsLimit field.
func (*Config) GetStaticMapsProvider ¶
GetStaticMapsProvider returns value of StaticMapsProvider conditional field and boolean which is true if field was set.
func (*Config) GetStickersFavedLimit ¶
GetStickersFavedLimit returns value of StickersFavedLimit field.
func (*Config) GetStickersRecentLimit ¶
GetStickersRecentLimit returns value of StickersRecentLimit field.
func (*Config) GetSuggestedLangCode ¶
GetSuggestedLangCode returns value of SuggestedLangCode conditional field and boolean which is true if field was set.
func (*Config) GetTestMode ¶
GetTestMode returns value of TestMode field.
func (*Config) GetTmpSessions ¶
GetTmpSessions returns value of TmpSessions conditional field and boolean which is true if field was set.
func (*Config) GetVenueSearchUsername ¶
GetVenueSearchUsername returns value of VenueSearchUsername conditional field and boolean which is true if field was set.
func (*Config) GetWebfileDCID ¶
GetWebfileDCID returns value of WebfileDCID field.
func (*Config) SetAutoupdateURLPrefix ¶
SetAutoupdateURLPrefix sets value of AutoupdateURLPrefix conditional field.
func (*Config) SetBaseLangPackVersion ¶
SetBaseLangPackVersion sets value of BaseLangPackVersion conditional field.
func (*Config) SetBlockedMode ¶
SetBlockedMode sets value of BlockedMode conditional field.
func (*Config) SetDefaultP2PContacts ¶
SetDefaultP2PContacts sets value of DefaultP2PContacts conditional field.
func (*Config) SetGifSearchUsername ¶
SetGifSearchUsername sets value of GifSearchUsername conditional field.
func (*Config) SetIgnorePhoneEntities ¶
SetIgnorePhoneEntities sets value of IgnorePhoneEntities conditional field.
func (*Config) SetImgSearchUsername ¶
SetImgSearchUsername sets value of ImgSearchUsername conditional field.
func (*Config) SetLangPackVersion ¶
SetLangPackVersion sets value of LangPackVersion conditional field.
func (*Config) SetPFSEnabled ¶
SetPFSEnabled sets value of PFSEnabled conditional field.
func (*Config) SetPhonecallsEnabled ¶
SetPhonecallsEnabled sets value of PhonecallsEnabled conditional field.
func (*Config) SetPreloadFeaturedStickers ¶
SetPreloadFeaturedStickers sets value of PreloadFeaturedStickers conditional field.
func (*Config) SetRevokePmInbox ¶
SetRevokePmInbox sets value of RevokePmInbox conditional field.
func (*Config) SetStaticMapsProvider ¶
SetStaticMapsProvider sets value of StaticMapsProvider conditional field.
func (*Config) SetSuggestedLangCode ¶
SetSuggestedLangCode sets value of SuggestedLangCode conditional field.
func (*Config) SetTmpSessions ¶
SetTmpSessions sets value of TmpSessions conditional field.
func (*Config) SetVenueSearchUsername ¶
SetVenueSearchUsername sets value of VenueSearchUsername conditional field.
type DCOption ¶ added in v0.26.0
type DCOption struct { // Flags field of DCOption. Flags bin.Fields // Ipv6 field of DCOption. Ipv6 bool // MediaOnly field of DCOption. MediaOnly bool // TCPObfuscatedOnly field of DCOption. TCPObfuscatedOnly bool // CDN field of DCOption. CDN bool // Static field of DCOption. Static bool // ID field of DCOption. ID int // IPAddress field of DCOption. IPAddress string // Port field of DCOption. Port int // Secret field of DCOption. // // Use SetSecret and GetSecret helpers. Secret []byte }
DCOption represents TL type `dcOption#18b7a10d`.
func (*DCOption) FillFrom ¶ added in v0.26.0
func (d *DCOption) FillFrom(from interface { GetIpv6() (value bool) GetMediaOnly() (value bool) GetTCPObfuscatedOnly() (value bool) GetCDN() (value bool) GetStatic() (value bool) GetID() (value int) GetIPAddress() (value string) GetPort() (value int) GetSecret() (value []byte, ok bool) })
FillFrom fills DCOption from given interface.
func (*DCOption) GetIPAddress ¶ added in v0.26.0
GetIPAddress returns value of IPAddress field.
func (*DCOption) GetMediaOnly ¶ added in v0.26.0
GetMediaOnly returns value of MediaOnly conditional field.
func (*DCOption) GetSecret ¶ added in v0.26.0
GetSecret returns value of Secret conditional field and boolean which is true if field was set.
func (*DCOption) GetTCPObfuscatedOnly ¶ added in v0.26.0
GetTCPObfuscatedOnly returns value of TCPObfuscatedOnly conditional field.
func (*DCOption) SetMediaOnly ¶ added in v0.26.0
SetMediaOnly sets value of MediaOnly conditional field.
func (*DCOption) SetTCPObfuscatedOnly ¶ added in v0.26.0
SetTCPObfuscatedOnly sets value of TCPObfuscatedOnly conditional field.