schema

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigTypeID = 0x330b4067

ConfigTypeID is TL type id of Config.

View Source
const DCOptionTypeID = 0x18b7a10d

DCOptionTypeID is TL type id of DCOption.

Variables

This section is empty.

Functions

func NamesMap

func NamesMap() map[string]uint32

NamesMap returns mapping from type names to TL type ids.

func TypesConstructorMap

func TypesConstructorMap() map[uint32]func() bin.Object

TypesConstructorMap maps type ids to constructors.

func TypesMap

func TypesMap() map[uint32]string

TypesMap returns mapping from type ids to TL type names.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implement methods for calling functions from TL schema via Invoker.

func NewClient

func NewClient(invoker Invoker) *Client

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) Decode

func (c *Config) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Config) DecodeBare added in v0.30.0

func (c *Config) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*Config) Encode

func (c *Config) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Config) EncodeBare added in v0.30.0

func (c *Config) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

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

func (c *Config) GetAutoupdateURLPrefix() (value string, ok bool)

GetAutoupdateURLPrefix returns value of AutoupdateURLPrefix conditional field and boolean which is true if field was set.

func (*Config) GetBaseLangPackVersion

func (c *Config) GetBaseLangPackVersion() (value int, ok bool)

GetBaseLangPackVersion returns value of BaseLangPackVersion conditional field and boolean which is true if field was set.

func (*Config) GetBlockedMode

func (c *Config) GetBlockedMode() (value bool)

GetBlockedMode returns value of BlockedMode conditional field.

func (*Config) GetCallConnectTimeoutMs

func (c *Config) GetCallConnectTimeoutMs() (value int)

GetCallConnectTimeoutMs returns value of CallConnectTimeoutMs field.

func (*Config) GetCallPacketTimeoutMs

func (c *Config) GetCallPacketTimeoutMs() (value int)

GetCallPacketTimeoutMs returns value of CallPacketTimeoutMs field.

func (*Config) GetCallReceiveTimeoutMs

func (c *Config) GetCallReceiveTimeoutMs() (value int)

GetCallReceiveTimeoutMs returns value of CallReceiveTimeoutMs field.

func (*Config) GetCallRingTimeoutMs

func (c *Config) GetCallRingTimeoutMs() (value int)

GetCallRingTimeoutMs returns value of CallRingTimeoutMs field.

func (*Config) GetCaptionLengthMax

func (c *Config) GetCaptionLengthMax() (value int)

GetCaptionLengthMax returns value of CaptionLengthMax field.

func (*Config) GetChannelsReadMediaPeriod

func (c *Config) GetChannelsReadMediaPeriod() (value int)

GetChannelsReadMediaPeriod returns value of ChannelsReadMediaPeriod field.

func (*Config) GetChatSizeMax

func (c *Config) GetChatSizeMax() (value int)

GetChatSizeMax returns value of ChatSizeMax field.

func (*Config) GetDCOptions

func (c *Config) GetDCOptions() (value []DCOption)

GetDCOptions returns value of DCOptions field.

func (*Config) GetDCTxtDomainName

func (c *Config) GetDCTxtDomainName() (value string)

GetDCTxtDomainName returns value of DCTxtDomainName field.

func (*Config) GetDate

func (c *Config) GetDate() (value int)

GetDate returns value of Date field.

func (*Config) GetDefaultP2PContacts

func (c *Config) GetDefaultP2PContacts() (value bool)

GetDefaultP2PContacts returns value of DefaultP2PContacts conditional field.

func (*Config) GetEditTimeLimit

func (c *Config) GetEditTimeLimit() (value int)

GetEditTimeLimit returns value of EditTimeLimit field.

func (*Config) GetExpires

func (c *Config) GetExpires() (value int)

GetExpires returns value of Expires field.

func (*Config) GetForwardedCountMax

func (c *Config) GetForwardedCountMax() (value int)

GetForwardedCountMax returns value of ForwardedCountMax field.

func (*Config) GetGifSearchUsername

func (c *Config) GetGifSearchUsername() (value string, ok bool)

GetGifSearchUsername returns value of GifSearchUsername conditional field and boolean which is true if field was set.

func (*Config) GetIgnorePhoneEntities

func (c *Config) GetIgnorePhoneEntities() (value bool)

GetIgnorePhoneEntities returns value of IgnorePhoneEntities conditional field.

func (*Config) GetImgSearchUsername

func (c *Config) GetImgSearchUsername() (value string, ok bool)

GetImgSearchUsername returns value of ImgSearchUsername conditional field and boolean which is true if field was set.

func (*Config) GetLangPackVersion

func (c *Config) GetLangPackVersion() (value int, ok bool)

GetLangPackVersion returns value of LangPackVersion conditional field and boolean which is true if field was set.

func (*Config) GetMeURLPrefix

func (c *Config) GetMeURLPrefix() (value string)

GetMeURLPrefix returns value of MeURLPrefix field.

func (*Config) GetMegagroupSizeMax

func (c *Config) GetMegagroupSizeMax() (value int)

GetMegagroupSizeMax returns value of MegagroupSizeMax field.

func (*Config) GetMessageLengthMax

func (c *Config) GetMessageLengthMax() (value int)

GetMessageLengthMax returns value of MessageLengthMax field.

func (*Config) GetNotifyCloudDelayMs

func (c *Config) GetNotifyCloudDelayMs() (value int)

GetNotifyCloudDelayMs returns value of NotifyCloudDelayMs field.

func (*Config) GetNotifyDefaultDelayMs

func (c *Config) GetNotifyDefaultDelayMs() (value int)

GetNotifyDefaultDelayMs returns value of NotifyDefaultDelayMs field.

func (*Config) GetOfflineBlurTimeoutMs

func (c *Config) GetOfflineBlurTimeoutMs() (value int)

GetOfflineBlurTimeoutMs returns value of OfflineBlurTimeoutMs field.

func (*Config) GetOfflineIdleTimeoutMs

func (c *Config) GetOfflineIdleTimeoutMs() (value int)

GetOfflineIdleTimeoutMs returns value of OfflineIdleTimeoutMs field.

func (*Config) GetOnlineCloudTimeoutMs

func (c *Config) GetOnlineCloudTimeoutMs() (value int)

GetOnlineCloudTimeoutMs returns value of OnlineCloudTimeoutMs field.

func (*Config) GetOnlineUpdatePeriodMs

func (c *Config) GetOnlineUpdatePeriodMs() (value int)

GetOnlineUpdatePeriodMs returns value of OnlineUpdatePeriodMs field.

func (*Config) GetPFSEnabled

func (c *Config) GetPFSEnabled() (value bool)

GetPFSEnabled returns value of PFSEnabled conditional field.

func (*Config) GetPhonecallsEnabled

func (c *Config) GetPhonecallsEnabled() (value bool)

GetPhonecallsEnabled returns value of PhonecallsEnabled conditional field.

func (*Config) GetPinnedDialogsCountMax

func (c *Config) GetPinnedDialogsCountMax() (value int)

GetPinnedDialogsCountMax returns value of PinnedDialogsCountMax field.

func (*Config) GetPinnedInfolderCountMax

func (c *Config) GetPinnedInfolderCountMax() (value int)

GetPinnedInfolderCountMax returns value of PinnedInfolderCountMax field.

func (*Config) GetPreloadFeaturedStickers

func (c *Config) GetPreloadFeaturedStickers() (value bool)

GetPreloadFeaturedStickers returns value of PreloadFeaturedStickers conditional field.

func (*Config) GetPushChatLimit

func (c *Config) GetPushChatLimit() (value int)

GetPushChatLimit returns value of PushChatLimit field.

func (*Config) GetPushChatPeriodMs

func (c *Config) GetPushChatPeriodMs() (value int)

GetPushChatPeriodMs returns value of PushChatPeriodMs field.

func (*Config) GetRatingEDecay

func (c *Config) GetRatingEDecay() (value int)

GetRatingEDecay returns value of RatingEDecay field.

func (*Config) GetRevokePmInbox

func (c *Config) GetRevokePmInbox() (value bool)

GetRevokePmInbox returns value of RevokePmInbox conditional field.

func (*Config) GetRevokePmTimeLimit

func (c *Config) GetRevokePmTimeLimit() (value int)

GetRevokePmTimeLimit returns value of RevokePmTimeLimit field.

func (*Config) GetRevokeTimeLimit

func (c *Config) GetRevokeTimeLimit() (value int)

GetRevokeTimeLimit returns value of RevokeTimeLimit field.

func (*Config) GetSavedGifsLimit

func (c *Config) GetSavedGifsLimit() (value int)

GetSavedGifsLimit returns value of SavedGifsLimit field.

func (*Config) GetStaticMapsProvider

func (c *Config) GetStaticMapsProvider() (value string, ok bool)

GetStaticMapsProvider returns value of StaticMapsProvider conditional field and boolean which is true if field was set.

func (*Config) GetStickersFavedLimit

func (c *Config) GetStickersFavedLimit() (value int)

GetStickersFavedLimit returns value of StickersFavedLimit field.

func (*Config) GetStickersRecentLimit

func (c *Config) GetStickersRecentLimit() (value int)

GetStickersRecentLimit returns value of StickersRecentLimit field.

func (*Config) GetSuggestedLangCode

func (c *Config) GetSuggestedLangCode() (value string, ok bool)

GetSuggestedLangCode returns value of SuggestedLangCode conditional field and boolean which is true if field was set.

func (*Config) GetTestMode

func (c *Config) GetTestMode() (value bool)

GetTestMode returns value of TestMode field.

func (*Config) GetThisDC

func (c *Config) GetThisDC() (value int)

GetThisDC returns value of ThisDC field.

func (*Config) GetTmpSessions

func (c *Config) GetTmpSessions() (value int, ok bool)

GetTmpSessions returns value of TmpSessions conditional field and boolean which is true if field was set.

func (*Config) GetVenueSearchUsername

func (c *Config) GetVenueSearchUsername() (value string, ok bool)

GetVenueSearchUsername returns value of VenueSearchUsername conditional field and boolean which is true if field was set.

func (*Config) GetWebfileDCID

func (c *Config) GetWebfileDCID() (value int)

GetWebfileDCID returns value of WebfileDCID field.

func (*Config) SetAutoupdateURLPrefix

func (c *Config) SetAutoupdateURLPrefix(value string)

SetAutoupdateURLPrefix sets value of AutoupdateURLPrefix conditional field.

func (*Config) SetBaseLangPackVersion

func (c *Config) SetBaseLangPackVersion(value int)

SetBaseLangPackVersion sets value of BaseLangPackVersion conditional field.

func (*Config) SetBlockedMode

func (c *Config) SetBlockedMode(value bool)

SetBlockedMode sets value of BlockedMode conditional field.

func (*Config) SetDefaultP2PContacts

func (c *Config) SetDefaultP2PContacts(value bool)

SetDefaultP2PContacts sets value of DefaultP2PContacts conditional field.

func (*Config) SetGifSearchUsername

func (c *Config) SetGifSearchUsername(value string)

SetGifSearchUsername sets value of GifSearchUsername conditional field.

func (*Config) SetIgnorePhoneEntities

func (c *Config) SetIgnorePhoneEntities(value bool)

SetIgnorePhoneEntities sets value of IgnorePhoneEntities conditional field.

func (*Config) SetImgSearchUsername

func (c *Config) SetImgSearchUsername(value string)

SetImgSearchUsername sets value of ImgSearchUsername conditional field.

func (*Config) SetLangPackVersion

func (c *Config) SetLangPackVersion(value int)

SetLangPackVersion sets value of LangPackVersion conditional field.

func (*Config) SetPFSEnabled

func (c *Config) SetPFSEnabled(value bool)

SetPFSEnabled sets value of PFSEnabled conditional field.

func (*Config) SetPhonecallsEnabled

func (c *Config) SetPhonecallsEnabled(value bool)

SetPhonecallsEnabled sets value of PhonecallsEnabled conditional field.

func (*Config) SetPreloadFeaturedStickers

func (c *Config) SetPreloadFeaturedStickers(value bool)

SetPreloadFeaturedStickers sets value of PreloadFeaturedStickers conditional field.

func (*Config) SetRevokePmInbox

func (c *Config) SetRevokePmInbox(value bool)

SetRevokePmInbox sets value of RevokePmInbox conditional field.

func (*Config) SetStaticMapsProvider

func (c *Config) SetStaticMapsProvider(value string)

SetStaticMapsProvider sets value of StaticMapsProvider conditional field.

func (*Config) SetSuggestedLangCode

func (c *Config) SetSuggestedLangCode(value string)

SetSuggestedLangCode sets value of SuggestedLangCode conditional field.

func (*Config) SetTmpSessions

func (c *Config) SetTmpSessions(value int)

SetTmpSessions sets value of TmpSessions conditional field.

func (*Config) SetVenueSearchUsername

func (c *Config) SetVenueSearchUsername(value string)

SetVenueSearchUsername sets value of VenueSearchUsername conditional field.

func (*Config) String

func (c *Config) String() string

String implements fmt.Stringer.

func (*Config) TypeID

func (*Config) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*Config) TypeInfo

func (c *Config) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*Config) TypeName

func (*Config) TypeName() string

TypeName returns name of type in TL schema.

func (*Config) Zero

func (c *Config) Zero() bool

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) Decode added in v0.26.0

func (d *DCOption) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DCOption) DecodeBare added in v0.30.0

func (d *DCOption) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*DCOption) Encode added in v0.26.0

func (d *DCOption) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DCOption) EncodeBare added in v0.30.0

func (d *DCOption) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

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) GetCDN added in v0.26.0

func (d *DCOption) GetCDN() (value bool)

GetCDN returns value of CDN conditional field.

func (*DCOption) GetID added in v0.26.0

func (d *DCOption) GetID() (value int)

GetID returns value of ID field.

func (*DCOption) GetIPAddress added in v0.26.0

func (d *DCOption) GetIPAddress() (value string)

GetIPAddress returns value of IPAddress field.

func (*DCOption) GetIpv6 added in v0.26.0

func (d *DCOption) GetIpv6() (value bool)

GetIpv6 returns value of Ipv6 conditional field.

func (*DCOption) GetMediaOnly added in v0.26.0

func (d *DCOption) GetMediaOnly() (value bool)

GetMediaOnly returns value of MediaOnly conditional field.

func (*DCOption) GetPort added in v0.26.0

func (d *DCOption) GetPort() (value int)

GetPort returns value of Port field.

func (*DCOption) GetSecret added in v0.26.0

func (d *DCOption) GetSecret() (value []byte, ok bool)

GetSecret returns value of Secret conditional field and boolean which is true if field was set.

func (*DCOption) GetStatic added in v0.26.0

func (d *DCOption) GetStatic() (value bool)

GetStatic returns value of Static conditional field.

func (*DCOption) GetTCPObfuscatedOnly added in v0.26.0

func (d *DCOption) GetTCPObfuscatedOnly() (value bool)

GetTCPObfuscatedOnly returns value of TCPObfuscatedOnly conditional field.

func (*DCOption) SetCDN added in v0.26.0

func (d *DCOption) SetCDN(value bool)

SetCDN sets value of CDN conditional field.

func (*DCOption) SetIpv6 added in v0.26.0

func (d *DCOption) SetIpv6(value bool)

SetIpv6 sets value of Ipv6 conditional field.

func (*DCOption) SetMediaOnly added in v0.26.0

func (d *DCOption) SetMediaOnly(value bool)

SetMediaOnly sets value of MediaOnly conditional field.

func (*DCOption) SetSecret added in v0.26.0

func (d *DCOption) SetSecret(value []byte)

SetSecret sets value of Secret conditional field.

func (*DCOption) SetStatic added in v0.26.0

func (d *DCOption) SetStatic(value bool)

SetStatic sets value of Static conditional field.

func (*DCOption) SetTCPObfuscatedOnly added in v0.26.0

func (d *DCOption) SetTCPObfuscatedOnly(value bool)

SetTCPObfuscatedOnly sets value of TCPObfuscatedOnly conditional field.

func (*DCOption) String added in v0.26.0

func (d *DCOption) String() string

String implements fmt.Stringer.

func (*DCOption) TypeID added in v0.26.0

func (*DCOption) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*DCOption) TypeInfo added in v0.26.0

func (d *DCOption) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*DCOption) TypeName added in v0.26.0

func (*DCOption) TypeName() string

TypeName returns name of type in TL schema.

func (*DCOption) Zero added in v0.26.0

func (d *DCOption) Zero() bool

type Invoker

type Invoker interface {
	InvokeRaw(ctx context.Context, input bin.Encoder, output bin.Decoder) error
}

Invoker can invoke raw MTProto rpc calls.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL