Documentation ¶
Overview ¶
Package td contains generated code from example schema and is used for codegen testing.
Index ¶
- Constants
- func NamesMap() map[string]uint32
- func TypesConstructorMap() map[uint32]func() bin.Object
- func TypesMap() map[uint32]string
- type AbstractMessageBox
- type AbstractMessageClass
- type AbstractMessageClassArray
- func (s AbstractMessageClassArray) AsBigMessage() (to BigMessageArray)
- func (s AbstractMessageClassArray) AsBytesMessage() (to BytesMessageArray)
- func (s AbstractMessageClassArray) AsFieldsMessage() (to FieldsMessageArray)
- func (s AbstractMessageClassArray) AsTargetsMessage() (to TargetsMessageArray)
- func (s AbstractMessageClassArray) First() (v AbstractMessageClass, ok bool)
- func (s AbstractMessageClassArray) Last() (v AbstractMessageClass, ok bool)
- func (s *AbstractMessageClassArray) Pop() (v AbstractMessageClass, ok bool)
- func (s *AbstractMessageClassArray) PopFirst() (v AbstractMessageClass, ok bool)
- func (s AbstractMessageClassArray) Retain(keep func(x AbstractMessageClass) bool) AbstractMessageClassArray
- func (s AbstractMessageClassArray) Sort(less func(a, b AbstractMessageClass) bool) AbstractMessageClassArray
- func (s AbstractMessageClassArray) SortStable(less func(a, b AbstractMessageClass) bool) AbstractMessageClassArray
- type AccountThemes
- func (t *AccountThemes) AsModified() (*AccountThemes, bool)
- func (t *AccountThemes) Decode(b *bin.Buffer) error
- func (t *AccountThemes) DecodeBare(b *bin.Buffer) error
- func (t *AccountThemes) Encode(b *bin.Buffer) error
- func (t *AccountThemes) EncodeBare(b *bin.Buffer) error
- func (t *AccountThemes) FillFrom(from interface{ ... })
- func (t *AccountThemes) GetHash() (value int)
- func (t *AccountThemes) GetThemes() (value []Theme)
- func (t *AccountThemes) String() string
- func (*AccountThemes) TypeID() uint32
- func (t *AccountThemes) TypeInfo() tdp.Type
- func (*AccountThemes) TypeName() string
- func (t *AccountThemes) Zero() bool
- type AccountThemesArray
- func (s AccountThemesArray) First() (v AccountThemes, ok bool)
- func (s AccountThemesArray) Last() (v AccountThemes, ok bool)
- func (s *AccountThemesArray) Pop() (v AccountThemes, ok bool)
- func (s *AccountThemesArray) PopFirst() (v AccountThemes, ok bool)
- func (s AccountThemesArray) Retain(keep func(x AccountThemes) bool) AccountThemesArray
- func (s AccountThemesArray) Sort(less func(a, b AccountThemes) bool) AccountThemesArray
- func (s AccountThemesArray) SortStable(less func(a, b AccountThemes) bool) AccountThemesArray
- type AccountThemesBox
- type AccountThemesClass
- type AccountThemesClassArray
- func (s AccountThemesClassArray) AppendOnlyModified(to []*AccountThemes) []*AccountThemes
- func (s AccountThemesClassArray) AsAccountThemes() (to AccountThemesArray)
- func (s AccountThemesClassArray) AsModified() (to []*AccountThemes)
- func (s AccountThemesClassArray) First() (v AccountThemesClass, ok bool)
- func (s AccountThemesClassArray) FirstAsModified() (v *AccountThemes, ok bool)
- func (s AccountThemesClassArray) Last() (v AccountThemesClass, ok bool)
- func (s AccountThemesClassArray) LastAsModified() (v *AccountThemes, ok bool)
- func (s *AccountThemesClassArray) Pop() (v AccountThemesClass, ok bool)
- func (s *AccountThemesClassArray) PopAsModified() (v *AccountThemes, ok bool)
- func (s *AccountThemesClassArray) PopFirst() (v AccountThemesClass, ok bool)
- func (s *AccountThemesClassArray) PopFirstAsModified() (v *AccountThemes, ok bool)
- func (s AccountThemesClassArray) Retain(keep func(x AccountThemesClass) bool) AccountThemesClassArray
- func (s AccountThemesClassArray) Sort(less func(a, b AccountThemesClass) bool) AccountThemesClassArray
- func (s AccountThemesClassArray) SortStable(less func(a, b AccountThemesClass) bool) AccountThemesClassArray
- type AccountThemesNotModified
- func (t *AccountThemesNotModified) AsModified() (*AccountThemes, bool)
- func (t *AccountThemesNotModified) Decode(b *bin.Buffer) error
- func (t *AccountThemesNotModified) DecodeBare(b *bin.Buffer) error
- func (t *AccountThemesNotModified) Encode(b *bin.Buffer) error
- func (t *AccountThemesNotModified) EncodeBare(b *bin.Buffer) error
- func (t *AccountThemesNotModified) String() string
- func (*AccountThemesNotModified) TypeID() uint32
- func (t *AccountThemesNotModified) TypeInfo() tdp.Type
- func (*AccountThemesNotModified) TypeName() string
- func (t *AccountThemesNotModified) Zero() bool
- type Auth
- func (a *Auth) Decode(b *bin.Buffer) error
- func (a *Auth) DecodeBare(b *bin.Buffer) error
- func (a *Auth) Encode(b *bin.Buffer) error
- func (a *Auth) EncodeBare(b *bin.Buffer) error
- func (a *Auth) FillFrom(from interface{ ... })
- func (a *Auth) GetName() (value string)
- func (a *Auth) String() string
- func (*Auth) TypeID() uint32
- func (a *Auth) TypeInfo() tdp.Type
- func (*Auth) TypeName() string
- func (a *Auth) Zero() bool
- type AuthArray
- func (s AuthArray) First() (v Auth, ok bool)
- func (s AuthArray) Last() (v Auth, ok bool)
- func (s *AuthArray) Pop() (v Auth, ok bool)
- func (s *AuthArray) PopFirst() (v Auth, ok bool)
- func (s AuthArray) Retain(keep func(x Auth) bool) AuthArray
- func (s AuthArray) Sort(less func(a, b Auth) bool) AuthArray
- func (s AuthArray) SortStable(less func(a, b Auth) bool) AuthArray
- type AuthBox
- type AuthClass
- type AuthClassArray
- func (s AuthClassArray) AsAuth() (to AuthArray)
- func (s AuthClassArray) AsAuthPassword() (to AuthPasswordArray)
- func (s AuthClassArray) First() (v AuthClass, ok bool)
- func (s AuthClassArray) Last() (v AuthClass, ok bool)
- func (s *AuthClassArray) Pop() (v AuthClass, ok bool)
- func (s *AuthClassArray) PopFirst() (v AuthClass, ok bool)
- func (s AuthClassArray) Retain(keep func(x AuthClass) bool) AuthClassArray
- func (s AuthClassArray) Sort(less func(a, b AuthClass) bool) AuthClassArray
- func (s AuthClassArray) SortStable(less func(a, b AuthClass) bool) AuthClassArray
- type AuthPassword
- func (a *AuthPassword) Decode(b *bin.Buffer) error
- func (a *AuthPassword) DecodeBare(b *bin.Buffer) error
- func (a *AuthPassword) Encode(b *bin.Buffer) error
- func (a *AuthPassword) EncodeBare(b *bin.Buffer) error
- func (a *AuthPassword) FillFrom(from interface{ ... })
- func (a *AuthPassword) GetName() (value string)
- func (a *AuthPassword) GetPassword() (value string)
- func (a *AuthPassword) String() string
- func (*AuthPassword) TypeID() uint32
- func (a *AuthPassword) TypeInfo() tdp.Type
- func (*AuthPassword) TypeName() string
- func (a *AuthPassword) Zero() bool
- type AuthPasswordArray
- func (s AuthPasswordArray) First() (v AuthPassword, ok bool)
- func (s AuthPasswordArray) Last() (v AuthPassword, ok bool)
- func (s *AuthPasswordArray) Pop() (v AuthPassword, ok bool)
- func (s *AuthPasswordArray) PopFirst() (v AuthPassword, ok bool)
- func (s AuthPasswordArray) Retain(keep func(x AuthPassword) bool) AuthPasswordArray
- func (s AuthPasswordArray) Sort(less func(a, b AuthPassword) bool) AuthPasswordArray
- func (s AuthPasswordArray) SortStable(less func(a, b AuthPassword) bool) AuthPasswordArray
- type BigMessage
- func (b *BigMessage) Decode(buf *bin.Buffer) error
- func (b *BigMessage) DecodeBare(buf *bin.Buffer) error
- func (b *BigMessage) Encode(buf *bin.Buffer) error
- func (b *BigMessage) EncodeBare(buf *bin.Buffer) error
- func (b *BigMessage) FillFrom(from interface{ ... })
- func (b *BigMessage) GetCount() (value int32)
- func (b *BigMessage) GetEscape() (value bool)
- func (b *BigMessage) GetID() (value int32)
- func (b *BigMessage) GetSummary() (value bool)
- func (b *BigMessage) GetTargetID() (value int32)
- func (b *BigMessage) String() string
- func (*BigMessage) TypeID() uint32
- func (b *BigMessage) TypeInfo() tdp.Type
- func (*BigMessage) TypeName() string
- func (b *BigMessage) Zero() bool
- type BigMessageArray
- func (s BigMessageArray) First() (v BigMessage, ok bool)
- func (s BigMessageArray) Last() (v BigMessage, ok bool)
- func (s *BigMessageArray) Pop() (v BigMessage, ok bool)
- func (s *BigMessageArray) PopFirst() (v BigMessage, ok bool)
- func (s BigMessageArray) Retain(keep func(x BigMessage) bool) BigMessageArray
- func (s BigMessageArray) Sort(less func(a, b BigMessage) bool) BigMessageArray
- func (s BigMessageArray) SortStable(less func(a, b BigMessage) bool) BigMessageArray
- type BoolBox
- type BoolClass
- type BoolClassArray
- func (s BoolClassArray) First() (v BoolClass, ok bool)
- func (s BoolClassArray) Last() (v BoolClass, ok bool)
- func (s *BoolClassArray) Pop() (v BoolClass, ok bool)
- func (s *BoolClassArray) PopFirst() (v BoolClass, ok bool)
- func (s BoolClassArray) Retain(keep func(x BoolClass) bool) BoolClassArray
- func (s BoolClassArray) Sort(less func(a, b BoolClass) bool) BoolClassArray
- func (s BoolClassArray) SortStable(less func(a, b BoolClass) bool) BoolClassArray
- type Bytes
- func (b *Bytes) Decode(buf *bin.Buffer) error
- func (b *Bytes) DecodeBare(buf *bin.Buffer) error
- func (b *Bytes) Encode(buf *bin.Buffer) error
- func (b *Bytes) EncodeBare(buf *bin.Buffer) error
- func (b *Bytes) String() string
- func (*Bytes) TypeID() uint32
- func (b *Bytes) TypeInfo() tdp.Type
- func (*Bytes) TypeName() string
- func (b *Bytes) Zero() bool
- type BytesMessage
- func (b *BytesMessage) Decode(buf *bin.Buffer) error
- func (b *BytesMessage) DecodeBare(buf *bin.Buffer) error
- func (b *BytesMessage) Encode(buf *bin.Buffer) error
- func (b *BytesMessage) EncodeBare(buf *bin.Buffer) error
- func (b *BytesMessage) FillFrom(from interface{ ... })
- func (b *BytesMessage) GetData() (value []byte)
- func (b *BytesMessage) String() string
- func (*BytesMessage) TypeID() uint32
- func (b *BytesMessage) TypeInfo() tdp.Type
- func (*BytesMessage) TypeName() string
- func (b *BytesMessage) Zero() bool
- type BytesMessageArray
- func (s BytesMessageArray) First() (v BytesMessage, ok bool)
- func (s BytesMessageArray) Last() (v BytesMessage, ok bool)
- func (s *BytesMessageArray) Pop() (v BytesMessage, ok bool)
- func (s *BytesMessageArray) PopFirst() (v BytesMessage, ok bool)
- func (s BytesMessageArray) Retain(keep func(x BytesMessage) bool) BytesMessageArray
- func (s BytesMessageArray) Sort(less func(a, b BytesMessage) bool) BytesMessageArray
- func (s BytesMessageArray) SortStable(less func(a, b BytesMessage) bool) BytesMessageArray
- type Client
- func (c *Client) DoAuth(ctx context.Context) (AuthClass, error)
- func (c *Client) EchoVector(ctx context.Context, ids []int) ([]int, error)
- func (c *Client) Ping(ctx context.Context, id int32) error
- func (c *Client) Send(ctx context.Context, msg SMS) (*SMS, error)
- func (c *Client) SendMultipleSMS(ctx context.Context, messages []SMS) error
- type ClientDHInnerData
- func (c *ClientDHInnerData) Decode(b *bin.Buffer) error
- func (c *ClientDHInnerData) DecodeBare(b *bin.Buffer) error
- func (c *ClientDHInnerData) Encode(b *bin.Buffer) error
- func (c *ClientDHInnerData) EncodeBare(b *bin.Buffer) error
- func (c *ClientDHInnerData) FillFrom(from interface{ ... })
- func (c *ClientDHInnerData) GetGB() (value string)
- func (c *ClientDHInnerData) GetNonce() (value bin.Int128)
- func (c *ClientDHInnerData) GetRetryID() (value int64)
- func (c *ClientDHInnerData) GetServerNonce() (value bin.Int128)
- func (c *ClientDHInnerData) String() string
- func (*ClientDHInnerData) TypeID() uint32
- func (c *ClientDHInnerData) TypeInfo() tdp.Type
- func (*ClientDHInnerData) TypeName() string
- func (c *ClientDHInnerData) Zero() bool
- type Config
- func (c *Config) Decode(b *bin.Buffer) error
- func (c *Config) DecodeBare(b *bin.Buffer) error
- func (c *Config) Encode(b *bin.Buffer) error
- func (c *Config) EncodeBare(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) DecodeBare(b *bin.Buffer) error
- func (d *DCOption) Encode(b *bin.Buffer) error
- func (d *DCOption) EncodeBare(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 DoAuthRequest
- func (d *DoAuthRequest) Decode(b *bin.Buffer) error
- func (d *DoAuthRequest) DecodeBare(b *bin.Buffer) error
- func (d *DoAuthRequest) Encode(b *bin.Buffer) error
- func (d *DoAuthRequest) EncodeBare(b *bin.Buffer) error
- func (d *DoAuthRequest) String() string
- func (*DoAuthRequest) TypeID() uint32
- func (d *DoAuthRequest) TypeInfo() tdp.Type
- func (*DoAuthRequest) TypeName() string
- func (d *DoAuthRequest) Zero() bool
- type EchoVectorRequest
- func (e *EchoVectorRequest) Decode(b *bin.Buffer) error
- func (e *EchoVectorRequest) DecodeBare(b *bin.Buffer) error
- func (e *EchoVectorRequest) Encode(b *bin.Buffer) error
- func (e *EchoVectorRequest) EncodeBare(b *bin.Buffer) error
- func (e *EchoVectorRequest) FillFrom(from interface{ ... })
- func (e *EchoVectorRequest) GetIDs() (value []int)
- func (e *EchoVectorRequest) String() string
- func (*EchoVectorRequest) TypeID() uint32
- func (e *EchoVectorRequest) TypeInfo() tdp.Type
- func (*EchoVectorRequest) TypeName() string
- func (e *EchoVectorRequest) Zero() bool
- type Error
- func (e *Error) Decode(b *bin.Buffer) error
- func (e *Error) DecodeBare(b *bin.Buffer) error
- func (e *Error) Encode(b *bin.Buffer) error
- func (e *Error) EncodeBare(b *bin.Buffer) error
- func (e *Error) FillFrom(from interface{ ... })
- func (e *Error) GetCode() (value int32)
- func (e *Error) GetMessage() (value string)
- func (e *Error) GetTemporary() (value bool)
- func (e *Error) String() string
- func (*Error) TypeID() uint32
- func (e *Error) TypeInfo() tdp.Type
- func (*Error) TypeName() string
- func (e *Error) Zero() bool
- type False
- func (f *False) Decode(b *bin.Buffer) error
- func (f *False) DecodeBare(b *bin.Buffer) error
- func (f *False) Encode(b *bin.Buffer) error
- func (f *False) EncodeBare(b *bin.Buffer) error
- func (f *False) String() string
- func (*False) TypeID() uint32
- func (f *False) TypeInfo() tdp.Type
- func (*False) TypeName() string
- func (f *False) Zero() bool
- type FieldsMessage
- func (f *FieldsMessage) Decode(b *bin.Buffer) error
- func (f *FieldsMessage) DecodeBare(b *bin.Buffer) error
- func (f *FieldsMessage) Encode(b *bin.Buffer) error
- func (f *FieldsMessage) EncodeBare(b *bin.Buffer) error
- func (f *FieldsMessage) FillFrom(from interface{ ... })
- func (f *FieldsMessage) GetEscape() (value bool, ok bool)
- func (f *FieldsMessage) GetTTLSeconds() (value int, ok bool)
- func (f *FieldsMessage) SetEscape(value bool)
- func (f *FieldsMessage) SetTTLSeconds(value int)
- func (f *FieldsMessage) String() string
- func (*FieldsMessage) TypeID() uint32
- func (f *FieldsMessage) TypeInfo() tdp.Type
- func (*FieldsMessage) TypeName() string
- func (f *FieldsMessage) Zero() bool
- type FieldsMessageArray
- func (s FieldsMessageArray) First() (v FieldsMessage, ok bool)
- func (s FieldsMessageArray) Last() (v FieldsMessage, ok bool)
- func (s *FieldsMessageArray) Pop() (v FieldsMessage, ok bool)
- func (s *FieldsMessageArray) PopFirst() (v FieldsMessage, ok bool)
- func (s FieldsMessageArray) Retain(keep func(x FieldsMessage) bool) FieldsMessageArray
- func (s FieldsMessageArray) Sort(less func(a, b FieldsMessage) bool) FieldsMessageArray
- func (s FieldsMessageArray) SortStable(less func(a, b FieldsMessage) bool) FieldsMessageArray
- type GetUpdatesResp
- func (g *GetUpdatesResp) Decode(b *bin.Buffer) error
- func (g *GetUpdatesResp) DecodeBare(b *bin.Buffer) error
- func (g *GetUpdatesResp) Encode(b *bin.Buffer) error
- func (g *GetUpdatesResp) EncodeBare(b *bin.Buffer) error
- func (g *GetUpdatesResp) FillFrom(from interface{ ... })
- func (g *GetUpdatesResp) GetUpdates() (value []AbstractMessageClass)
- func (g *GetUpdatesResp) MapUpdates() (value AbstractMessageClassArray)
- func (g *GetUpdatesResp) String() string
- func (*GetUpdatesResp) TypeID() uint32
- func (g *GetUpdatesResp) TypeInfo() tdp.Type
- func (*GetUpdatesResp) TypeName() string
- func (g *GetUpdatesResp) Zero() bool
- type Int32
- func (i *Int32) Decode(b *bin.Buffer) error
- func (i *Int32) DecodeBare(b *bin.Buffer) error
- func (i *Int32) Encode(b *bin.Buffer) error
- func (i *Int32) EncodeBare(b *bin.Buffer) error
- func (i *Int32) String() string
- func (*Int32) TypeID() uint32
- func (i *Int32) TypeInfo() tdp.Type
- func (*Int32) TypeName() string
- func (i *Int32) Zero() bool
- type IntVector
- func (vec *IntVector) Decode(b *bin.Buffer) error
- func (vec *IntVector) DecodeBare(b *bin.Buffer) error
- func (vec *IntVector) Encode(b *bin.Buffer) error
- func (vec *IntVector) EncodeBare(b *bin.Buffer) error
- func (vec *IntVector) FillFrom(from interface{ ... })
- func (vec *IntVector) GetElems() (value []int)
- func (vec *IntVector) String() string
- func (*IntVector) TypeID() uint32
- func (vec *IntVector) TypeInfo() tdp.Type
- func (*IntVector) TypeName() string
- func (vec *IntVector) Zero() bool
- type InvokeWithLayer
- func (i *InvokeWithLayer) Decode(b *bin.Buffer) error
- func (i *InvokeWithLayer) DecodeBare(b *bin.Buffer) error
- func (i *InvokeWithLayer) Encode(b *bin.Buffer) error
- func (i *InvokeWithLayer) EncodeBare(b *bin.Buffer) error
- func (i *InvokeWithLayer) FillFrom(from interface{ ... })
- func (i *InvokeWithLayer) GetLayer() (value int)
- func (i *InvokeWithLayer) GetQuery() (value bin.Object)
- func (i *InvokeWithLayer) String() string
- func (*InvokeWithLayer) TypeID() uint32
- func (i *InvokeWithLayer) TypeInfo() tdp.Type
- func (*InvokeWithLayer) TypeName() string
- func (i *InvokeWithLayer) Zero() bool
- type Invoker
- type Message
- func (m *Message) Decode(b *bin.Buffer) error
- func (m *Message) DecodeBare(b *bin.Buffer) error
- func (m *Message) Encode(b *bin.Buffer) error
- func (m *Message) EncodeBare(b *bin.Buffer) error
- func (m *Message) FillFrom(from interface{ ... })
- func (m *Message) GetErr() (value Error)
- func (m *Message) String() string
- func (*Message) TypeID() uint32
- func (m *Message) TypeInfo() tdp.Type
- func (*Message) TypeName() string
- func (m *Message) Zero() bool
- type NoMessage
- func (n *NoMessage) Decode(b *bin.Buffer) error
- func (n *NoMessage) DecodeBare(b *bin.Buffer) error
- func (n *NoMessage) Encode(b *bin.Buffer) error
- func (n *NoMessage) EncodeBare(b *bin.Buffer) error
- func (n *NoMessage) String() string
- func (*NoMessage) TypeID() uint32
- func (n *NoMessage) TypeInfo() tdp.Type
- func (*NoMessage) TypeName() string
- func (n *NoMessage) Zero() bool
- type Ok
- func (o *Ok) Decode(b *bin.Buffer) error
- func (o *Ok) DecodeBare(b *bin.Buffer) error
- func (o *Ok) Encode(b *bin.Buffer) error
- func (o *Ok) EncodeBare(b *bin.Buffer) error
- func (o *Ok) String() string
- func (*Ok) TypeID() uint32
- func (o *Ok) TypeInfo() tdp.Type
- func (*Ok) TypeName() string
- func (o *Ok) Zero() bool
- type PingRequest
- func (p *PingRequest) Decode(b *bin.Buffer) error
- func (p *PingRequest) DecodeBare(b *bin.Buffer) error
- func (p *PingRequest) Encode(b *bin.Buffer) error
- func (p *PingRequest) EncodeBare(b *bin.Buffer) error
- func (p *PingRequest) FillFrom(from interface{ ... })
- func (p *PingRequest) GetID() (value int32)
- func (p *PingRequest) String() string
- func (*PingRequest) TypeID() uint32
- func (p *PingRequest) TypeInfo() tdp.Type
- func (*PingRequest) TypeName() string
- func (p *PingRequest) Zero() bool
- type ResponseBox
- type ResponseClass
- type ResponseClassArray
- func (s ResponseClassArray) AsResponseID() (to ResponseIDArray)
- func (s ResponseClassArray) AsResponseText() (to ResponseTextArray)
- func (s ResponseClassArray) First() (v ResponseClass, ok bool)
- func (s ResponseClassArray) Last() (v ResponseClass, ok bool)
- func (s *ResponseClassArray) Pop() (v ResponseClass, ok bool)
- func (s *ResponseClassArray) PopFirst() (v ResponseClass, ok bool)
- func (s ResponseClassArray) Retain(keep func(x ResponseClass) bool) ResponseClassArray
- func (s ResponseClassArray) Sort(less func(a, b ResponseClass) bool) ResponseClassArray
- func (s ResponseClassArray) SortStable(less func(a, b ResponseClass) bool) ResponseClassArray
- type ResponseID
- func (r *ResponseID) Decode(b *bin.Buffer) error
- func (r *ResponseID) DecodeBare(b *bin.Buffer) error
- func (r *ResponseID) Encode(b *bin.Buffer) error
- func (r *ResponseID) EncodeBare(b *bin.Buffer) error
- func (r *ResponseID) FillFrom(from interface{ ... })
- func (r *ResponseID) GetID() (value int32)
- func (r *ResponseID) String() string
- func (*ResponseID) TypeID() uint32
- func (r *ResponseID) TypeInfo() tdp.Type
- func (*ResponseID) TypeName() string
- func (r *ResponseID) Zero() bool
- type ResponseIDArray
- func (s ResponseIDArray) First() (v ResponseID, ok bool)
- func (s ResponseIDArray) Last() (v ResponseID, ok bool)
- func (s *ResponseIDArray) Pop() (v ResponseID, ok bool)
- func (s *ResponseIDArray) PopFirst() (v ResponseID, ok bool)
- func (s ResponseIDArray) Retain(keep func(x ResponseID) bool) ResponseIDArray
- func (s ResponseIDArray) Sort(less func(a, b ResponseID) bool) ResponseIDArray
- func (s ResponseIDArray) SortStable(less func(a, b ResponseID) bool) ResponseIDArray
- type ResponseText
- func (r *ResponseText) Decode(b *bin.Buffer) error
- func (r *ResponseText) DecodeBare(b *bin.Buffer) error
- func (r *ResponseText) Encode(b *bin.Buffer) error
- func (r *ResponseText) EncodeBare(b *bin.Buffer) error
- func (r *ResponseText) FillFrom(from interface{ ... })
- func (r *ResponseText) GetText() (value string)
- func (r *ResponseText) String() string
- func (*ResponseText) TypeID() uint32
- func (r *ResponseText) TypeInfo() tdp.Type
- func (*ResponseText) TypeName() string
- func (r *ResponseText) Zero() bool
- type ResponseTextArray
- func (s ResponseTextArray) First() (v ResponseText, ok bool)
- func (s ResponseTextArray) Last() (v ResponseText, ok bool)
- func (s *ResponseTextArray) Pop() (v ResponseText, ok bool)
- func (s *ResponseTextArray) PopFirst() (v ResponseText, ok bool)
- func (s ResponseTextArray) Retain(keep func(x ResponseText) bool) ResponseTextArray
- func (s ResponseTextArray) Sort(less func(a, b ResponseText) bool) ResponseTextArray
- func (s ResponseTextArray) SortStable(less func(a, b ResponseText) bool) ResponseTextArray
- type SMS
- func (s *SMS) Decode(b *bin.Buffer) error
- func (s *SMS) DecodeBare(b *bin.Buffer) error
- func (s *SMS) Encode(b *bin.Buffer) error
- func (s *SMS) EncodeBare(b *bin.Buffer) error
- func (s *SMS) FillFrom(from interface{ ... })
- func (s *SMS) GetText() (value string)
- func (s *SMS) String() string
- func (*SMS) TypeID() uint32
- func (s *SMS) TypeInfo() tdp.Type
- func (*SMS) TypeName() string
- func (s *SMS) Zero() bool
- type SendMultipleSMSRequest
- func (s *SendMultipleSMSRequest) Decode(b *bin.Buffer) error
- func (s *SendMultipleSMSRequest) DecodeBare(b *bin.Buffer) error
- func (s *SendMultipleSMSRequest) Encode(b *bin.Buffer) error
- func (s *SendMultipleSMSRequest) EncodeBare(b *bin.Buffer) error
- func (s *SendMultipleSMSRequest) FillFrom(from interface{ ... })
- func (s *SendMultipleSMSRequest) GetMessages() (value []SMS)
- func (s *SendMultipleSMSRequest) String() string
- func (*SendMultipleSMSRequest) TypeID() uint32
- func (s *SendMultipleSMSRequest) TypeInfo() tdp.Type
- func (*SendMultipleSMSRequest) TypeName() string
- func (s *SendMultipleSMSRequest) Zero() bool
- type SendRequest
- func (s *SendRequest) Decode(b *bin.Buffer) error
- func (s *SendRequest) DecodeBare(b *bin.Buffer) error
- func (s *SendRequest) Encode(b *bin.Buffer) error
- func (s *SendRequest) EncodeBare(b *bin.Buffer) error
- func (s *SendRequest) FillFrom(from interface{ ... })
- func (s *SendRequest) GetMsg() (value SMS)
- func (s *SendRequest) String() string
- func (*SendRequest) TypeID() uint32
- func (s *SendRequest) TypeInfo() tdp.Type
- func (*SendRequest) TypeName() string
- func (s *SendRequest) Zero() bool
- type String
- func (s *String) Decode(b *bin.Buffer) error
- func (s *String) DecodeBare(b *bin.Buffer) error
- func (s *String) Encode(b *bin.Buffer) error
- func (s *String) EncodeBare(b *bin.Buffer) error
- func (s *String) String() string
- func (*String) TypeID() uint32
- func (s *String) TypeInfo() tdp.Type
- func (*String) TypeName() string
- func (s *String) Zero() bool
- type TargetsMessage
- func (t *TargetsMessage) Decode(b *bin.Buffer) error
- func (t *TargetsMessage) DecodeBare(b *bin.Buffer) error
- func (t *TargetsMessage) Encode(b *bin.Buffer) error
- func (t *TargetsMessage) EncodeBare(b *bin.Buffer) error
- func (t *TargetsMessage) FillFrom(from interface{ ... })
- func (t *TargetsMessage) GetTargets() (value []int32)
- func (t *TargetsMessage) String() string
- func (*TargetsMessage) TypeID() uint32
- func (t *TargetsMessage) TypeInfo() tdp.Type
- func (*TargetsMessage) TypeName() string
- func (t *TargetsMessage) Zero() bool
- type TargetsMessageArray
- func (s TargetsMessageArray) First() (v TargetsMessage, ok bool)
- func (s TargetsMessageArray) Last() (v TargetsMessage, ok bool)
- func (s *TargetsMessageArray) Pop() (v TargetsMessage, ok bool)
- func (s *TargetsMessageArray) PopFirst() (v TargetsMessage, ok bool)
- func (s TargetsMessageArray) Retain(keep func(x TargetsMessage) bool) TargetsMessageArray
- func (s TargetsMessageArray) Sort(less func(a, b TargetsMessage) bool) TargetsMessageArray
- func (s TargetsMessageArray) SortStable(less func(a, b TargetsMessage) bool) TargetsMessageArray
- type TestBytes
- func (t *TestBytes) Decode(b *bin.Buffer) error
- func (t *TestBytes) DecodeBare(b *bin.Buffer) error
- func (t *TestBytes) Encode(b *bin.Buffer) error
- func (t *TestBytes) EncodeBare(b *bin.Buffer) error
- func (t *TestBytes) FillFrom(from interface{ ... })
- func (t *TestBytes) GetValue() (value []byte)
- func (t *TestBytes) String() string
- func (*TestBytes) TypeID() uint32
- func (t *TestBytes) TypeInfo() tdp.Type
- func (*TestBytes) TypeName() string
- func (t *TestBytes) Zero() bool
- type TestInt
- func (t *TestInt) Decode(b *bin.Buffer) error
- func (t *TestInt) DecodeBare(b *bin.Buffer) error
- func (t *TestInt) Encode(b *bin.Buffer) error
- func (t *TestInt) EncodeBare(b *bin.Buffer) error
- func (t *TestInt) FillFrom(from interface{ ... })
- func (t *TestInt) GetValue() (value int32)
- func (t *TestInt) String() string
- func (*TestInt) TypeID() uint32
- func (t *TestInt) TypeInfo() tdp.Type
- func (*TestInt) TypeName() string
- func (t *TestInt) Zero() bool
- type TestString
- func (t *TestString) Decode(b *bin.Buffer) error
- func (t *TestString) DecodeBare(b *bin.Buffer) error
- func (t *TestString) Encode(b *bin.Buffer) error
- func (t *TestString) EncodeBare(b *bin.Buffer) error
- func (t *TestString) FillFrom(from interface{ ... })
- func (t *TestString) GetValue() (value string)
- func (t *TestString) String() string
- func (*TestString) TypeID() uint32
- func (t *TestString) TypeInfo() tdp.Type
- func (*TestString) TypeName() string
- func (t *TestString) Zero() bool
- type TestVectorBytes
- func (t *TestVectorBytes) Decode(b *bin.Buffer) error
- func (t *TestVectorBytes) DecodeBare(b *bin.Buffer) error
- func (t *TestVectorBytes) Encode(b *bin.Buffer) error
- func (t *TestVectorBytes) EncodeBare(b *bin.Buffer) error
- func (t *TestVectorBytes) FillFrom(from interface{ ... })
- func (t *TestVectorBytes) GetValue() (value [][]byte)
- func (t *TestVectorBytes) String() string
- func (*TestVectorBytes) TypeID() uint32
- func (t *TestVectorBytes) TypeInfo() tdp.Type
- func (*TestVectorBytes) TypeName() string
- func (t *TestVectorBytes) Zero() bool
- type TestVectorInt
- func (t *TestVectorInt) Decode(b *bin.Buffer) error
- func (t *TestVectorInt) DecodeBare(b *bin.Buffer) error
- func (t *TestVectorInt) Encode(b *bin.Buffer) error
- func (t *TestVectorInt) EncodeBare(b *bin.Buffer) error
- func (t *TestVectorInt) FillFrom(from interface{ ... })
- func (t *TestVectorInt) GetValue() (value []int32)
- func (t *TestVectorInt) String() string
- func (*TestVectorInt) TypeID() uint32
- func (t *TestVectorInt) TypeInfo() tdp.Type
- func (*TestVectorInt) TypeName() string
- func (t *TestVectorInt) Zero() bool
- type TestVectorIntObject
- func (t *TestVectorIntObject) Decode(b *bin.Buffer) error
- func (t *TestVectorIntObject) DecodeBare(b *bin.Buffer) error
- func (t *TestVectorIntObject) Encode(b *bin.Buffer) error
- func (t *TestVectorIntObject) EncodeBare(b *bin.Buffer) error
- func (t *TestVectorIntObject) FillFrom(from interface{ ... })
- func (t *TestVectorIntObject) GetValue() (value []TestInt)
- func (t *TestVectorIntObject) String() string
- func (*TestVectorIntObject) TypeID() uint32
- func (t *TestVectorIntObject) TypeInfo() tdp.Type
- func (*TestVectorIntObject) TypeName() string
- func (t *TestVectorIntObject) Zero() bool
- type TestVectorString
- func (t *TestVectorString) Decode(b *bin.Buffer) error
- func (t *TestVectorString) DecodeBare(b *bin.Buffer) error
- func (t *TestVectorString) Encode(b *bin.Buffer) error
- func (t *TestVectorString) EncodeBare(b *bin.Buffer) error
- func (t *TestVectorString) FillFrom(from interface{ ... })
- func (t *TestVectorString) GetValue() (value []string)
- func (t *TestVectorString) String() string
- func (*TestVectorString) TypeID() uint32
- func (t *TestVectorString) TypeInfo() tdp.Type
- func (*TestVectorString) TypeName() string
- func (t *TestVectorString) Zero() bool
- type TestVectorStringObject
- func (t *TestVectorStringObject) Decode(b *bin.Buffer) error
- func (t *TestVectorStringObject) DecodeBare(b *bin.Buffer) error
- func (t *TestVectorStringObject) Encode(b *bin.Buffer) error
- func (t *TestVectorStringObject) EncodeBare(b *bin.Buffer) error
- func (t *TestVectorStringObject) FillFrom(from interface{ ... })
- func (t *TestVectorStringObject) GetValue() (value []TestString)
- func (t *TestVectorStringObject) String() string
- func (*TestVectorStringObject) TypeID() uint32
- func (t *TestVectorStringObject) TypeInfo() tdp.Type
- func (*TestVectorStringObject) TypeName() string
- func (t *TestVectorStringObject) Zero() bool
- type TestVectorVector
- func (t *TestVectorVector) Decode(b *bin.Buffer) error
- func (t *TestVectorVector) DecodeBare(b *bin.Buffer) error
- func (t *TestVectorVector) Encode(b *bin.Buffer) error
- func (t *TestVectorVector) EncodeBare(b *bin.Buffer) error
- func (t *TestVectorVector) FillFrom(from interface{ ... })
- func (t *TestVectorVector) GetValue() (value [][]string)
- func (t *TestVectorVector) String() string
- func (*TestVectorVector) TypeID() uint32
- func (t *TestVectorVector) TypeInfo() tdp.Type
- func (*TestVectorVector) TypeName() string
- func (t *TestVectorVector) Zero() bool
- type TextEntities
- func (t *TextEntities) Decode(b *bin.Buffer) error
- func (t *TextEntities) DecodeBare(b *bin.Buffer) error
- func (t *TextEntities) Encode(b *bin.Buffer) error
- func (t *TextEntities) EncodeBare(b *bin.Buffer) error
- func (t *TextEntities) FillFrom(from interface{ ... })
- func (t *TextEntities) GetEntities() (value []TextEntity)
- func (t *TextEntities) String() string
- func (*TextEntities) TypeID() uint32
- func (t *TextEntities) TypeInfo() tdp.Type
- func (*TextEntities) TypeName() string
- func (t *TextEntities) Zero() bool
- type TextEntity
- func (t *TextEntity) Decode(b *bin.Buffer) error
- func (t *TextEntity) DecodeBare(b *bin.Buffer) error
- func (t *TextEntity) Encode(b *bin.Buffer) error
- func (t *TextEntity) EncodeBare(b *bin.Buffer) error
- func (t *TextEntity) FillFrom(from interface{ ... })
- func (t *TextEntity) GetLength() (value int32)
- func (t *TextEntity) GetOffset() (value int32)
- func (t *TextEntity) GetType() (value TextEntityTypeClass)
- func (t *TextEntity) String() string
- func (*TextEntity) TypeID() uint32
- func (t *TextEntity) TypeInfo() tdp.Type
- func (*TextEntity) TypeName() string
- func (t *TextEntity) Zero() bool
- type TextEntityTypeBankCardNumber
- func (t *TextEntityTypeBankCardNumber) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeBankCardNumber) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeBankCardNumber) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeBankCardNumber) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeBankCardNumber) String() string
- func (*TextEntityTypeBankCardNumber) TypeID() uint32
- func (t *TextEntityTypeBankCardNumber) TypeInfo() tdp.Type
- func (*TextEntityTypeBankCardNumber) TypeName() string
- func (t *TextEntityTypeBankCardNumber) Zero() bool
- type TextEntityTypeBold
- func (t *TextEntityTypeBold) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeBold) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeBold) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeBold) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeBold) String() string
- func (*TextEntityTypeBold) TypeID() uint32
- func (t *TextEntityTypeBold) TypeInfo() tdp.Type
- func (*TextEntityTypeBold) TypeName() string
- func (t *TextEntityTypeBold) Zero() bool
- type TextEntityTypeBotCommand
- func (t *TextEntityTypeBotCommand) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeBotCommand) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeBotCommand) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeBotCommand) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeBotCommand) String() string
- func (*TextEntityTypeBotCommand) TypeID() uint32
- func (t *TextEntityTypeBotCommand) TypeInfo() tdp.Type
- func (*TextEntityTypeBotCommand) TypeName() string
- func (t *TextEntityTypeBotCommand) Zero() bool
- type TextEntityTypeBox
- type TextEntityTypeCashtag
- func (t *TextEntityTypeCashtag) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeCashtag) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeCashtag) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeCashtag) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeCashtag) String() string
- func (*TextEntityTypeCashtag) TypeID() uint32
- func (t *TextEntityTypeCashtag) TypeInfo() tdp.Type
- func (*TextEntityTypeCashtag) TypeName() string
- func (t *TextEntityTypeCashtag) Zero() bool
- type TextEntityTypeClass
- type TextEntityTypeClassArray
- func (s TextEntityTypeClassArray) AsTextEntityTypeMentionName() (to TextEntityTypeMentionNameArray)
- func (s TextEntityTypeClassArray) AsTextEntityTypePreCode() (to TextEntityTypePreCodeArray)
- func (s TextEntityTypeClassArray) AsTextEntityTypeTextURL() (to TextEntityTypeTextURLArray)
- func (s TextEntityTypeClassArray) First() (v TextEntityTypeClass, ok bool)
- func (s TextEntityTypeClassArray) Last() (v TextEntityTypeClass, ok bool)
- func (s *TextEntityTypeClassArray) Pop() (v TextEntityTypeClass, ok bool)
- func (s *TextEntityTypeClassArray) PopFirst() (v TextEntityTypeClass, ok bool)
- func (s TextEntityTypeClassArray) Retain(keep func(x TextEntityTypeClass) bool) TextEntityTypeClassArray
- func (s TextEntityTypeClassArray) Sort(less func(a, b TextEntityTypeClass) bool) TextEntityTypeClassArray
- func (s TextEntityTypeClassArray) SortStable(less func(a, b TextEntityTypeClass) bool) TextEntityTypeClassArray
- type TextEntityTypeCode
- func (t *TextEntityTypeCode) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeCode) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeCode) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeCode) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeCode) String() string
- func (*TextEntityTypeCode) TypeID() uint32
- func (t *TextEntityTypeCode) TypeInfo() tdp.Type
- func (*TextEntityTypeCode) TypeName() string
- func (t *TextEntityTypeCode) Zero() bool
- type TextEntityTypeEmailAddress
- func (t *TextEntityTypeEmailAddress) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeEmailAddress) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeEmailAddress) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeEmailAddress) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeEmailAddress) String() string
- func (*TextEntityTypeEmailAddress) TypeID() uint32
- func (t *TextEntityTypeEmailAddress) TypeInfo() tdp.Type
- func (*TextEntityTypeEmailAddress) TypeName() string
- func (t *TextEntityTypeEmailAddress) Zero() bool
- type TextEntityTypeHashtag
- func (t *TextEntityTypeHashtag) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeHashtag) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeHashtag) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeHashtag) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeHashtag) String() string
- func (*TextEntityTypeHashtag) TypeID() uint32
- func (t *TextEntityTypeHashtag) TypeInfo() tdp.Type
- func (*TextEntityTypeHashtag) TypeName() string
- func (t *TextEntityTypeHashtag) Zero() bool
- type TextEntityTypeItalic
- func (t *TextEntityTypeItalic) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeItalic) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeItalic) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeItalic) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeItalic) String() string
- func (*TextEntityTypeItalic) TypeID() uint32
- func (t *TextEntityTypeItalic) TypeInfo() tdp.Type
- func (*TextEntityTypeItalic) TypeName() string
- func (t *TextEntityTypeItalic) Zero() bool
- type TextEntityTypeMention
- func (t *TextEntityTypeMention) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeMention) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeMention) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeMention) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeMention) String() string
- func (*TextEntityTypeMention) TypeID() uint32
- func (t *TextEntityTypeMention) TypeInfo() tdp.Type
- func (*TextEntityTypeMention) TypeName() string
- func (t *TextEntityTypeMention) Zero() bool
- type TextEntityTypeMentionName
- func (t *TextEntityTypeMentionName) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeMentionName) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeMentionName) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeMentionName) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeMentionName) FillFrom(from interface{ ... })
- func (t *TextEntityTypeMentionName) GetUserID() (value int32)
- func (t *TextEntityTypeMentionName) String() string
- func (*TextEntityTypeMentionName) TypeID() uint32
- func (t *TextEntityTypeMentionName) TypeInfo() tdp.Type
- func (*TextEntityTypeMentionName) TypeName() string
- func (t *TextEntityTypeMentionName) Zero() bool
- type TextEntityTypeMentionNameArray
- func (s TextEntityTypeMentionNameArray) First() (v TextEntityTypeMentionName, ok bool)
- func (s TextEntityTypeMentionNameArray) Last() (v TextEntityTypeMentionName, ok bool)
- func (s *TextEntityTypeMentionNameArray) Pop() (v TextEntityTypeMentionName, ok bool)
- func (s *TextEntityTypeMentionNameArray) PopFirst() (v TextEntityTypeMentionName, ok bool)
- func (s TextEntityTypeMentionNameArray) Retain(keep func(x TextEntityTypeMentionName) bool) TextEntityTypeMentionNameArray
- func (s TextEntityTypeMentionNameArray) Sort(less func(a, b TextEntityTypeMentionName) bool) TextEntityTypeMentionNameArray
- func (s TextEntityTypeMentionNameArray) SortStable(less func(a, b TextEntityTypeMentionName) bool) TextEntityTypeMentionNameArray
- type TextEntityTypePhoneNumber
- func (t *TextEntityTypePhoneNumber) Decode(b *bin.Buffer) error
- func (t *TextEntityTypePhoneNumber) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypePhoneNumber) Encode(b *bin.Buffer) error
- func (t *TextEntityTypePhoneNumber) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypePhoneNumber) String() string
- func (*TextEntityTypePhoneNumber) TypeID() uint32
- func (t *TextEntityTypePhoneNumber) TypeInfo() tdp.Type
- func (*TextEntityTypePhoneNumber) TypeName() string
- func (t *TextEntityTypePhoneNumber) Zero() bool
- type TextEntityTypePre
- func (t *TextEntityTypePre) Decode(b *bin.Buffer) error
- func (t *TextEntityTypePre) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypePre) Encode(b *bin.Buffer) error
- func (t *TextEntityTypePre) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypePre) String() string
- func (*TextEntityTypePre) TypeID() uint32
- func (t *TextEntityTypePre) TypeInfo() tdp.Type
- func (*TextEntityTypePre) TypeName() string
- func (t *TextEntityTypePre) Zero() bool
- type TextEntityTypePreCode
- func (t *TextEntityTypePreCode) Decode(b *bin.Buffer) error
- func (t *TextEntityTypePreCode) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypePreCode) Encode(b *bin.Buffer) error
- func (t *TextEntityTypePreCode) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypePreCode) FillFrom(from interface{ ... })
- func (t *TextEntityTypePreCode) GetLanguage() (value string)
- func (t *TextEntityTypePreCode) String() string
- func (*TextEntityTypePreCode) TypeID() uint32
- func (t *TextEntityTypePreCode) TypeInfo() tdp.Type
- func (*TextEntityTypePreCode) TypeName() string
- func (t *TextEntityTypePreCode) Zero() bool
- type TextEntityTypePreCodeArray
- func (s TextEntityTypePreCodeArray) First() (v TextEntityTypePreCode, ok bool)
- func (s TextEntityTypePreCodeArray) Last() (v TextEntityTypePreCode, ok bool)
- func (s *TextEntityTypePreCodeArray) Pop() (v TextEntityTypePreCode, ok bool)
- func (s *TextEntityTypePreCodeArray) PopFirst() (v TextEntityTypePreCode, ok bool)
- func (s TextEntityTypePreCodeArray) Retain(keep func(x TextEntityTypePreCode) bool) TextEntityTypePreCodeArray
- func (s TextEntityTypePreCodeArray) Sort(less func(a, b TextEntityTypePreCode) bool) TextEntityTypePreCodeArray
- func (s TextEntityTypePreCodeArray) SortStable(less func(a, b TextEntityTypePreCode) bool) TextEntityTypePreCodeArray
- type TextEntityTypeStrikethrough
- func (t *TextEntityTypeStrikethrough) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeStrikethrough) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeStrikethrough) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeStrikethrough) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeStrikethrough) String() string
- func (*TextEntityTypeStrikethrough) TypeID() uint32
- func (t *TextEntityTypeStrikethrough) TypeInfo() tdp.Type
- func (*TextEntityTypeStrikethrough) TypeName() string
- func (t *TextEntityTypeStrikethrough) Zero() bool
- type TextEntityTypeTextURL
- func (t *TextEntityTypeTextURL) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeTextURL) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeTextURL) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeTextURL) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeTextURL) FillFrom(from interface{ ... })
- func (t *TextEntityTypeTextURL) GetURL() (value string)
- func (t *TextEntityTypeTextURL) String() string
- func (*TextEntityTypeTextURL) TypeID() uint32
- func (t *TextEntityTypeTextURL) TypeInfo() tdp.Type
- func (*TextEntityTypeTextURL) TypeName() string
- func (t *TextEntityTypeTextURL) Zero() bool
- type TextEntityTypeTextURLArray
- func (s TextEntityTypeTextURLArray) First() (v TextEntityTypeTextURL, ok bool)
- func (s TextEntityTypeTextURLArray) Last() (v TextEntityTypeTextURL, ok bool)
- func (s *TextEntityTypeTextURLArray) Pop() (v TextEntityTypeTextURL, ok bool)
- func (s *TextEntityTypeTextURLArray) PopFirst() (v TextEntityTypeTextURL, ok bool)
- func (s TextEntityTypeTextURLArray) Retain(keep func(x TextEntityTypeTextURL) bool) TextEntityTypeTextURLArray
- func (s TextEntityTypeTextURLArray) Sort(less func(a, b TextEntityTypeTextURL) bool) TextEntityTypeTextURLArray
- func (s TextEntityTypeTextURLArray) SortStable(less func(a, b TextEntityTypeTextURL) bool) TextEntityTypeTextURLArray
- type TextEntityTypeURL
- func (t *TextEntityTypeURL) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeURL) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeURL) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeURL) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeURL) String() string
- func (*TextEntityTypeURL) TypeID() uint32
- func (t *TextEntityTypeURL) TypeInfo() tdp.Type
- func (*TextEntityTypeURL) TypeName() string
- func (t *TextEntityTypeURL) Zero() bool
- type TextEntityTypeUnderline
- func (t *TextEntityTypeUnderline) Decode(b *bin.Buffer) error
- func (t *TextEntityTypeUnderline) DecodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeUnderline) Encode(b *bin.Buffer) error
- func (t *TextEntityTypeUnderline) EncodeBare(b *bin.Buffer) error
- func (t *TextEntityTypeUnderline) String() string
- func (*TextEntityTypeUnderline) TypeID() uint32
- func (t *TextEntityTypeUnderline) TypeInfo() tdp.Type
- func (*TextEntityTypeUnderline) TypeName() string
- func (t *TextEntityTypeUnderline) Zero() bool
- type Theme
- func (t *Theme) Decode(b *bin.Buffer) error
- func (t *Theme) DecodeBare(b *bin.Buffer) error
- func (t *Theme) Encode(b *bin.Buffer) error
- func (t *Theme) EncodeBare(b *bin.Buffer) error
- func (t *Theme) FillFrom(from interface{ ... })
- func (t *Theme) GetName() (value string)
- func (t *Theme) String() string
- func (*Theme) TypeID() uint32
- func (t *Theme) TypeInfo() tdp.Type
- func (*Theme) TypeName() string
- func (t *Theme) Zero() bool
- type True
- func (t *True) Decode(b *bin.Buffer) error
- func (t *True) DecodeBare(b *bin.Buffer) error
- func (t *True) Encode(b *bin.Buffer) error
- func (t *True) EncodeBare(b *bin.Buffer) error
- func (t *True) String() string
- func (*True) TypeID() uint32
- func (t *True) TypeInfo() tdp.Type
- func (*True) TypeName() string
- func (t *True) Zero() bool
- type Update
- func (u *Update) Decode(b *bin.Buffer) error
- func (u *Update) DecodeBare(b *bin.Buffer) error
- func (u *Update) Encode(b *bin.Buffer) error
- func (u *Update) EncodeBare(b *bin.Buffer) error
- func (u *Update) FillFrom(from interface{ ... })
- func (u *Update) GetDelay() (value int32)
- func (u *Update) GetMsg() (value AbstractMessageClass)
- func (u *Update) String() string
- func (*Update) TypeID() uint32
- func (u *Update) TypeInfo() tdp.Type
- func (*Update) TypeName() string
- func (u *Update) Zero() bool
- type UserAuth
- func (a *UserAuth) Decode(b *bin.Buffer) error
- func (a *UserAuth) DecodeBare(b *bin.Buffer) error
- func (a *UserAuth) Encode(b *bin.Buffer) error
- func (a *UserAuth) EncodeBare(b *bin.Buffer) error
- func (a *UserAuth) FillFrom(from interface{ ... })
- func (a *UserAuth) GetFoo() (value string)
- func (a *UserAuth) String() string
- func (*UserAuth) TypeID() uint32
- func (a *UserAuth) TypeInfo() tdp.Type
- func (*UserAuth) TypeName() string
- func (a *UserAuth) Zero() bool
- type UserAuthArray
- func (s UserAuthArray) First() (v UserAuth, ok bool)
- func (s UserAuthArray) Last() (v UserAuth, ok bool)
- func (s *UserAuthArray) Pop() (v UserAuth, ok bool)
- func (s *UserAuthArray) PopFirst() (v UserAuth, ok bool)
- func (s UserAuthArray) Retain(keep func(x UserAuth) bool) UserAuthArray
- func (s UserAuthArray) Sort(less func(a, b UserAuth) bool) UserAuthArray
- func (s UserAuthArray) SortStable(less func(a, b UserAuth) bool) UserAuthArray
- type UserAuthBox
- type UserAuthClass
- type UserAuthClassArray
- func (s UserAuthClassArray) AsUserAuth() (to UserAuthArray)
- func (s UserAuthClassArray) AsUserAuthPassword() (to UserAuthPasswordArray)
- func (s UserAuthClassArray) First() (v UserAuthClass, ok bool)
- func (s UserAuthClassArray) Last() (v UserAuthClass, ok bool)
- func (s *UserAuthClassArray) Pop() (v UserAuthClass, ok bool)
- func (s *UserAuthClassArray) PopFirst() (v UserAuthClass, ok bool)
- func (s UserAuthClassArray) Retain(keep func(x UserAuthClass) bool) UserAuthClassArray
- func (s UserAuthClassArray) Sort(less func(a, b UserAuthClass) bool) UserAuthClassArray
- func (s UserAuthClassArray) SortStable(less func(a, b UserAuthClass) bool) UserAuthClassArray
- type UserAuthPassword
- func (a *UserAuthPassword) Decode(b *bin.Buffer) error
- func (a *UserAuthPassword) DecodeBare(b *bin.Buffer) error
- func (a *UserAuthPassword) Encode(b *bin.Buffer) error
- func (a *UserAuthPassword) EncodeBare(b *bin.Buffer) error
- func (a *UserAuthPassword) FillFrom(from interface{ ... })
- func (a *UserAuthPassword) GetPwd() (value string)
- func (a *UserAuthPassword) String() string
- func (*UserAuthPassword) TypeID() uint32
- func (a *UserAuthPassword) TypeInfo() tdp.Type
- func (*UserAuthPassword) TypeName() string
- func (a *UserAuthPassword) Zero() bool
- type UserAuthPasswordArray
- func (s UserAuthPasswordArray) First() (v UserAuthPassword, ok bool)
- func (s UserAuthPasswordArray) Last() (v UserAuthPassword, ok bool)
- func (s *UserAuthPasswordArray) Pop() (v UserAuthPassword, ok bool)
- func (s *UserAuthPasswordArray) PopFirst() (v UserAuthPassword, ok bool)
- func (s UserAuthPasswordArray) Retain(keep func(x UserAuthPassword) bool) UserAuthPasswordArray
- func (s UserAuthPasswordArray) Sort(less func(a, b UserAuthPassword) bool) UserAuthPasswordArray
- func (s UserAuthPasswordArray) SortStable(less func(a, b UserAuthPassword) bool) UserAuthPasswordArray
Constants ¶
const AccountThemesNotModifiedTypeID = 0xf41eb622
AccountThemesNotModifiedTypeID is TL type id of AccountThemesNotModified.
const AccountThemesTypeID = 0x7f676421
AccountThemesTypeID is TL type id of AccountThemes.
const AuthPasswordTypeID = 0x29bacabb
AuthPasswordTypeID is TL type id of AuthPassword.
const AuthTypeID = 0xf8bb4a38
AuthTypeID is TL type id of Auth.
const BigMessageTypeID = 0x7490dcc5
BigMessageTypeID is TL type id of BigMessage.
const BytesMessageTypeID = 0xf990a67d
BytesMessageTypeID is TL type id of BytesMessage.
const BytesTypeID = 0xe937bb82
BytesTypeID is TL type id of Bytes.
const ClientDHInnerDataTypeID = 0x6643b654
ClientDHInnerDataTypeID is TL type id of ClientDHInnerData.
const ConfigTypeID = 0x330b4067
ConfigTypeID is TL type id of Config.
const DCOptionTypeID = 0x18b7a10d
DCOptionTypeID is TL type id of DCOption.
const DoAuthRequestTypeID = 0xfd2f6687
DoAuthRequestTypeID is TL type id of DoAuthRequest.
const EchoVectorRequestTypeID = 0xd4785939
EchoVectorRequestTypeID is TL type id of EchoVectorRequest.
const ErrorTypeID = 0x14feebbc
ErrorTypeID is TL type id of Error.
const FalseTypeID = 0xbc799737
FalseTypeID is TL type id of False.
const FieldsMessageTypeID = 0x947225b5
FieldsMessageTypeID is TL type id of FieldsMessage.
const GetUpdatesRespTypeID = 0x300bb5e1
GetUpdatesRespTypeID is TL type id of GetUpdatesResp.
const Int32TypeID = 0x5cb934fa
Int32TypeID is TL type id of Int32.
const IntVectorTypeID = bin.TypeVector
IntVectorTypeID is TL type id of IntVector.
const InvokeWithLayerTypeID = 0xda9b0d0d
InvokeWithLayerTypeID is TL type id of InvokeWithLayer.
const MessageTypeID = 0xec200d96
MessageTypeID is TL type id of Message.
const NoMessageTypeID = 0xee6324c4
NoMessageTypeID is TL type id of NoMessage.
const OkTypeID = 0xd4edbe69
OkTypeID is TL type id of Ok.
const PingRequestTypeID = 0xce73048f
PingRequestTypeID is TL type id of PingRequest.
const ResponseIDTypeID = 0x85d7fd8b
ResponseIDTypeID is TL type id of ResponseID.
const ResponseTextTypeID = 0xcb0244f2
ResponseTextTypeID is TL type id of ResponseText.
const SMSTypeID = 0xed8bebfe
SMSTypeID is TL type id of SMS.
const SendMultipleSMSRequestTypeID = 0xdf18e5ca
SendMultipleSMSRequestTypeID is TL type id of SendMultipleSMSRequest.
const SendRequestTypeID = 0xf74488a
SendRequestTypeID is TL type id of SendRequest.
const StringTypeID = 0xb5286e24
StringTypeID is TL type id of String.
const TargetsMessageTypeID = 0xcc6136f1
TargetsMessageTypeID is TL type id of TargetsMessage.
const TestBytesTypeID = 0xa422c4de
TestBytesTypeID is TL type id of TestBytes.
const TestIntTypeID = 0xddbd2c09
TestIntTypeID is TL type id of TestInt.
const TestStringTypeID = 0xfe56688c
TestStringTypeID is TL type id of TestString.
const TestVectorBytesTypeID = 0xa590fb25
TestVectorBytesTypeID is TL type id of TestVectorBytes.
const TestVectorIntObjectTypeID = 0xf152999b
TestVectorIntObjectTypeID is TL type id of TestVectorIntObject.
const TestVectorIntTypeID = 0xdf9eb113
TestVectorIntTypeID is TL type id of TestVectorInt.
const TestVectorStringObjectTypeID = 0xe5ecc0d
TestVectorStringObjectTypeID is TL type id of TestVectorStringObject.
const TestVectorStringTypeID = 0x5d6f85bc
TestVectorStringTypeID is TL type id of TestVectorString.
const TestVectorVectorTypeID = 0x69e8846c
TestVectorVectorTypeID is TL type id of TestVectorVector.
const TextEntitiesTypeID = 0xcf89c258
TextEntitiesTypeID is TL type id of TextEntities.
const TextEntityTypeBankCardNumberTypeID = 0x6513910
TextEntityTypeBankCardNumberTypeID is TL type id of TextEntityTypeBankCardNumber.
const TextEntityTypeBoldTypeID = 0xbcc0e1b0
TextEntityTypeBoldTypeID is TL type id of TextEntityTypeBold.
const TextEntityTypeBotCommandTypeID = 0xbb652bb3
TextEntityTypeBotCommandTypeID is TL type id of TextEntityTypeBotCommand.
const TextEntityTypeCashtagTypeID = 0x48e4374b
TextEntityTypeCashtagTypeID is TL type id of TextEntityTypeCashtag.
const TextEntityTypeCodeTypeID = 0xc5e9c94a
TextEntityTypeCodeTypeID is TL type id of TextEntityTypeCode.
const TextEntityTypeEmailAddressTypeID = 0x54f81821
TextEntityTypeEmailAddressTypeID is TL type id of TextEntityTypeEmailAddress.
const TextEntityTypeHashtagTypeID = 0xc2f7a2dd
TextEntityTypeHashtagTypeID is TL type id of TextEntityTypeHashtag.
const TextEntityTypeID = 0x8bab99a8
TextEntityTypeID is TL type id of TextEntity.
const TextEntityTypeItalicTypeID = 0xf8f3965d
TextEntityTypeItalicTypeID is TL type id of TextEntityTypeItalic.
const TextEntityTypeMentionNameTypeID = 0xd0d2685d
TextEntityTypeMentionNameTypeID is TL type id of TextEntityTypeMentionName.
const TextEntityTypeMentionTypeID = 0x37b3df65
TextEntityTypeMentionTypeID is TL type id of TextEntityTypeMention.
const TextEntityTypePhoneNumberTypeID = 0xbad9aa2a
TextEntityTypePhoneNumberTypeID is TL type id of TextEntityTypePhoneNumber.
const TextEntityTypePreCodeTypeID = 0xc7a77aab
TextEntityTypePreCodeTypeID is TL type id of TextEntityTypePreCode.
const TextEntityTypePreTypeID = 0x62491c8e
TextEntityTypePreTypeID is TL type id of TextEntityTypePre.
const TextEntityTypeStrikethroughTypeID = 0x394fc4fa
TextEntityTypeStrikethroughTypeID is TL type id of TextEntityTypeStrikethrough.
const TextEntityTypeTextURLTypeID = 0x1a912463
TextEntityTypeTextURLTypeID is TL type id of TextEntityTypeTextURL.
const TextEntityTypeURLTypeID = 0xb1c0d47c
TextEntityTypeURLTypeID is TL type id of TextEntityTypeURL.
const TextEntityTypeUnderlineTypeID = 0x2f39cf92
TextEntityTypeUnderlineTypeID is TL type id of TextEntityTypeUnderline.
const ThemeTypeID = 0x28f1114
ThemeTypeID is TL type id of Theme.
const TrueTypeID = 0x997275b5
TrueTypeID is TL type id of True.
const UpdateTypeID = 0xb03e2ef8
UpdateTypeID is TL type id of Update.
const UserAuthPasswordTypeID = 0x5981e317
UserAuthPasswordTypeID is TL type id of UserAuthPassword.
const UserAuthTypeID = 0xf4815592
UserAuthTypeID is TL type id of UserAuth.
Variables ¶
This section is empty.
Functions ¶
func TypesConstructorMap ¶ added in v0.15.0
TypesConstructorMap maps type ids to constructors.
Types ¶
type AbstractMessageBox ¶
type AbstractMessageBox struct {
AbstractMessage AbstractMessageClass
}
AbstractMessage boxes the AbstractMessageClass providing a helper.
type AbstractMessageClass ¶
type AbstractMessageClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // contains filtered or unexported methods }
AbstractMessageClass represents AbstractMessage generic type.
See https://localhost:80/doc/type/AbstractMessage for reference.
Example:
g, err := td.DecodeAbstractMessage(buf) if err != nil { panic(err) } switch v := g.(type) { case *td.BigMessage: // bigMessage#7490dcc5 case *td.NoMessage: // noMessage#ee6324c4 case *td.TargetsMessage: // targetsMessage#cc6136f1 case *td.FieldsMessage: // fieldsMessage#947225b5 case *td.BytesMessage: // bytesMessage#f990a67d default: panic(v) }
func DecodeAbstractMessage ¶
func DecodeAbstractMessage(buf *bin.Buffer) (AbstractMessageClass, error)
DecodeAbstractMessage implements binary de-serialization for AbstractMessageClass.
type AbstractMessageClassArray ¶ added in v0.25.0
type AbstractMessageClassArray []AbstractMessageClass
AbstractMessageClassArray is adapter for slice of AbstractMessageClass.
func (AbstractMessageClassArray) AsBigMessage ¶ added in v0.25.0
func (s AbstractMessageClassArray) AsBigMessage() (to BigMessageArray)
AsBigMessage returns copy with only BigMessage constructors.
func (AbstractMessageClassArray) AsBytesMessage ¶ added in v0.25.0
func (s AbstractMessageClassArray) AsBytesMessage() (to BytesMessageArray)
AsBytesMessage returns copy with only BytesMessage constructors.
func (AbstractMessageClassArray) AsFieldsMessage ¶ added in v0.25.0
func (s AbstractMessageClassArray) AsFieldsMessage() (to FieldsMessageArray)
AsFieldsMessage returns copy with only FieldsMessage constructors.
func (AbstractMessageClassArray) AsTargetsMessage ¶ added in v0.25.0
func (s AbstractMessageClassArray) AsTargetsMessage() (to TargetsMessageArray)
AsTargetsMessage returns copy with only TargetsMessage constructors.
func (AbstractMessageClassArray) First ¶ added in v0.25.0
func (s AbstractMessageClassArray) First() (v AbstractMessageClass, ok bool)
First returns first element of slice (if exists).
func (AbstractMessageClassArray) Last ¶ added in v0.25.0
func (s AbstractMessageClassArray) Last() (v AbstractMessageClass, ok bool)
Last returns last element of slice (if exists).
func (*AbstractMessageClassArray) Pop ¶ added in v0.25.0
func (s *AbstractMessageClassArray) Pop() (v AbstractMessageClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*AbstractMessageClassArray) PopFirst ¶ added in v0.25.0
func (s *AbstractMessageClassArray) PopFirst() (v AbstractMessageClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (AbstractMessageClassArray) Retain ¶ added in v0.25.0
func (s AbstractMessageClassArray) Retain(keep func(x AbstractMessageClass) bool) AbstractMessageClassArray
Retain filters in-place slice of AbstractMessageClass.
func (AbstractMessageClassArray) Sort ¶ added in v0.25.0
func (s AbstractMessageClassArray) Sort(less func(a, b AbstractMessageClass) bool) AbstractMessageClassArray
Sort sorts slice of AbstractMessageClass.
func (AbstractMessageClassArray) SortStable ¶ added in v0.25.0
func (s AbstractMessageClassArray) SortStable(less func(a, b AbstractMessageClass) bool) AbstractMessageClassArray
SortStable sorts slice of AbstractMessageClass.
type AccountThemes ¶
type AccountThemes struct { // Hash field of AccountThemes. Hash int // Themes field of AccountThemes. Themes []Theme }
AccountThemes represents TL type `account.themes#7f676421`.
See https://localhost:80/doc/constructor/account.themes for reference.
func (*AccountThemes) AsModified ¶ added in v0.25.0
func (t *AccountThemes) AsModified() (*AccountThemes, bool)
AsModified tries to map AccountThemes to AccountThemes.
func (*AccountThemes) Decode ¶
func (t *AccountThemes) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AccountThemes) DecodeBare ¶ added in v0.30.0
func (t *AccountThemes) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*AccountThemes) Encode ¶
func (t *AccountThemes) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*AccountThemes) EncodeBare ¶ added in v0.30.0
func (t *AccountThemes) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*AccountThemes) FillFrom ¶ added in v0.25.0
func (t *AccountThemes) FillFrom(from interface { GetHash() (value int) GetThemes() (value []Theme) })
FillFrom fills AccountThemes from given interface.
func (*AccountThemes) GetHash ¶ added in v0.21.0
func (t *AccountThemes) GetHash() (value int)
GetHash returns value of Hash field.
func (*AccountThemes) GetThemes ¶ added in v0.21.0
func (t *AccountThemes) GetThemes() (value []Theme)
GetThemes returns value of Themes field.
func (*AccountThemes) String ¶ added in v0.12.0
func (t *AccountThemes) String() string
String implements fmt.Stringer.
func (*AccountThemes) TypeID ¶ added in v0.21.0
func (*AccountThemes) TypeID() uint32
TypeID returns type id in TL schema.
func (*AccountThemes) TypeInfo ¶ added in v0.25.0
func (t *AccountThemes) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*AccountThemes) TypeName ¶ added in v0.25.0
func (*AccountThemes) TypeName() string
TypeName returns name of type in TL schema.
func (*AccountThemes) Zero ¶ added in v0.20.0
func (t *AccountThemes) Zero() bool
type AccountThemesArray ¶ added in v0.25.0
type AccountThemesArray []AccountThemes
AccountThemesArray is adapter for slice of AccountThemes.
func (AccountThemesArray) First ¶ added in v0.25.0
func (s AccountThemesArray) First() (v AccountThemes, ok bool)
First returns first element of slice (if exists).
func (AccountThemesArray) Last ¶ added in v0.25.0
func (s AccountThemesArray) Last() (v AccountThemes, ok bool)
Last returns last element of slice (if exists).
func (*AccountThemesArray) Pop ¶ added in v0.25.0
func (s *AccountThemesArray) Pop() (v AccountThemes, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*AccountThemesArray) PopFirst ¶ added in v0.25.0
func (s *AccountThemesArray) PopFirst() (v AccountThemes, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (AccountThemesArray) Retain ¶ added in v0.25.0
func (s AccountThemesArray) Retain(keep func(x AccountThemes) bool) AccountThemesArray
Retain filters in-place slice of AccountThemes.
func (AccountThemesArray) Sort ¶ added in v0.25.0
func (s AccountThemesArray) Sort(less func(a, b AccountThemes) bool) AccountThemesArray
Sort sorts slice of AccountThemes.
func (AccountThemesArray) SortStable ¶ added in v0.25.0
func (s AccountThemesArray) SortStable(less func(a, b AccountThemes) bool) AccountThemesArray
SortStable sorts slice of AccountThemes.
type AccountThemesBox ¶
type AccountThemesBox struct {
Themes AccountThemesClass
}
AccountThemes boxes the AccountThemesClass providing a helper.
type AccountThemesClass ¶
type AccountThemesClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // AsModified tries to map AccountThemesClass to AccountThemes. AsModified() (*AccountThemes, bool) // contains filtered or unexported methods }
AccountThemesClass represents account.Themes generic type.
See https://localhost:80/doc/type/account.Themes for reference.
Example:
g, err := td.DecodeAccountThemes(buf) if err != nil { panic(err) } switch v := g.(type) { case *td.AccountThemesNotModified: // account.themesNotModified#f41eb622 case *td.AccountThemes: // account.themes#7f676421 default: panic(v) }
func DecodeAccountThemes ¶
func DecodeAccountThemes(buf *bin.Buffer) (AccountThemesClass, error)
DecodeAccountThemes implements binary de-serialization for AccountThemesClass.
type AccountThemesClassArray ¶ added in v0.25.0
type AccountThemesClassArray []AccountThemesClass
AccountThemesClassArray is adapter for slice of AccountThemesClass.
func (AccountThemesClassArray) AppendOnlyModified ¶ added in v0.25.0
func (s AccountThemesClassArray) AppendOnlyModified(to []*AccountThemes) []*AccountThemes
AppendOnlyModified appends only Modified constructors to given slice.
func (AccountThemesClassArray) AsAccountThemes ¶ added in v0.25.0
func (s AccountThemesClassArray) AsAccountThemes() (to AccountThemesArray)
AsAccountThemes returns copy with only AccountThemes constructors.
func (AccountThemesClassArray) AsModified ¶ added in v0.25.0
func (s AccountThemesClassArray) AsModified() (to []*AccountThemes)
AsModified returns copy with only Modified constructors.
func (AccountThemesClassArray) First ¶ added in v0.25.0
func (s AccountThemesClassArray) First() (v AccountThemesClass, ok bool)
First returns first element of slice (if exists).
func (AccountThemesClassArray) FirstAsModified ¶ added in v0.25.0
func (s AccountThemesClassArray) FirstAsModified() (v *AccountThemes, ok bool)
FirstAsModified returns first element of slice (if exists).
func (AccountThemesClassArray) Last ¶ added in v0.25.0
func (s AccountThemesClassArray) Last() (v AccountThemesClass, ok bool)
Last returns last element of slice (if exists).
func (AccountThemesClassArray) LastAsModified ¶ added in v0.25.0
func (s AccountThemesClassArray) LastAsModified() (v *AccountThemes, ok bool)
LastAsModified returns last element of slice (if exists).
func (*AccountThemesClassArray) Pop ¶ added in v0.25.0
func (s *AccountThemesClassArray) Pop() (v AccountThemesClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*AccountThemesClassArray) PopAsModified ¶ added in v0.25.0
func (s *AccountThemesClassArray) PopAsModified() (v *AccountThemes, ok bool)
PopAsModified returns element of slice (if exists).
func (*AccountThemesClassArray) PopFirst ¶ added in v0.25.0
func (s *AccountThemesClassArray) PopFirst() (v AccountThemesClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (*AccountThemesClassArray) PopFirstAsModified ¶ added in v0.25.0
func (s *AccountThemesClassArray) PopFirstAsModified() (v *AccountThemes, ok bool)
PopFirstAsModified returns element of slice (if exists).
func (AccountThemesClassArray) Retain ¶ added in v0.25.0
func (s AccountThemesClassArray) Retain(keep func(x AccountThemesClass) bool) AccountThemesClassArray
Retain filters in-place slice of AccountThemesClass.
func (AccountThemesClassArray) Sort ¶ added in v0.25.0
func (s AccountThemesClassArray) Sort(less func(a, b AccountThemesClass) bool) AccountThemesClassArray
Sort sorts slice of AccountThemesClass.
func (AccountThemesClassArray) SortStable ¶ added in v0.25.0
func (s AccountThemesClassArray) SortStable(less func(a, b AccountThemesClass) bool) AccountThemesClassArray
SortStable sorts slice of AccountThemesClass.
type AccountThemesNotModified ¶
type AccountThemesNotModified struct { }
AccountThemesNotModified represents TL type `account.themesNotModified#f41eb622`.
See https://localhost:80/doc/constructor/account.themesNotModified for reference.
func (*AccountThemesNotModified) AsModified ¶ added in v0.25.0
func (t *AccountThemesNotModified) AsModified() (*AccountThemes, bool)
AsModified tries to map AccountThemesNotModified to AccountThemes.
func (*AccountThemesNotModified) Decode ¶
func (t *AccountThemesNotModified) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AccountThemesNotModified) DecodeBare ¶ added in v0.30.0
func (t *AccountThemesNotModified) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*AccountThemesNotModified) Encode ¶
func (t *AccountThemesNotModified) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*AccountThemesNotModified) EncodeBare ¶ added in v0.30.0
func (t *AccountThemesNotModified) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*AccountThemesNotModified) String ¶ added in v0.12.0
func (t *AccountThemesNotModified) String() string
String implements fmt.Stringer.
func (*AccountThemesNotModified) TypeID ¶ added in v0.21.0
func (*AccountThemesNotModified) TypeID() uint32
TypeID returns type id in TL schema.
func (*AccountThemesNotModified) TypeInfo ¶ added in v0.25.0
func (t *AccountThemesNotModified) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*AccountThemesNotModified) TypeName ¶ added in v0.25.0
func (*AccountThemesNotModified) TypeName() string
TypeName returns name of type in TL schema.
func (*AccountThemesNotModified) Zero ¶ added in v0.20.0
func (t *AccountThemesNotModified) Zero() bool
type Auth ¶
type Auth struct { // Name field of Auth. Name string }
Auth represents TL type `auth#f8bb4a38`.
See https://localhost:80/doc/constructor/auth for reference.
func (*Auth) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*Auth) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type AuthArray ¶ added in v0.25.0
type AuthArray []Auth
AuthArray is adapter for slice of Auth.
func (*AuthArray) Pop ¶ added in v0.25.0
Pop returns last element of slice (if exists) and deletes it.
func (*AuthArray) PopFirst ¶ added in v0.25.0
PopFirst returns first element of slice (if exists) and deletes it.
type AuthBox ¶
type AuthBox struct {
Auth AuthClass
}
Auth boxes the AuthClass providing a helper.
type AuthClass ¶
type AuthClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // Name field of Auth. GetName() (value string) // contains filtered or unexported methods }
AuthClass represents Auth generic type.
See https://localhost:80/doc/type/Auth for reference.
Example:
g, err := td.DecodeAuth(buf) if err != nil { panic(err) } switch v := g.(type) { case *td.Auth: // auth#f8bb4a38 case *td.AuthPassword: // authPassword#29bacabb default: panic(v) }
type AuthClassArray ¶ added in v0.25.0
type AuthClassArray []AuthClass
AuthClassArray is adapter for slice of AuthClass.
func (AuthClassArray) AsAuth ¶ added in v0.25.0
func (s AuthClassArray) AsAuth() (to AuthArray)
AsAuth returns copy with only Auth constructors.
func (AuthClassArray) AsAuthPassword ¶ added in v0.25.0
func (s AuthClassArray) AsAuthPassword() (to AuthPasswordArray)
AsAuthPassword returns copy with only AuthPassword constructors.
func (AuthClassArray) First ¶ added in v0.25.0
func (s AuthClassArray) First() (v AuthClass, ok bool)
First returns first element of slice (if exists).
func (AuthClassArray) Last ¶ added in v0.25.0
func (s AuthClassArray) Last() (v AuthClass, ok bool)
Last returns last element of slice (if exists).
func (*AuthClassArray) Pop ¶ added in v0.25.0
func (s *AuthClassArray) Pop() (v AuthClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*AuthClassArray) PopFirst ¶ added in v0.25.0
func (s *AuthClassArray) PopFirst() (v AuthClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (AuthClassArray) Retain ¶ added in v0.25.0
func (s AuthClassArray) Retain(keep func(x AuthClass) bool) AuthClassArray
Retain filters in-place slice of AuthClass.
func (AuthClassArray) Sort ¶ added in v0.25.0
func (s AuthClassArray) Sort(less func(a, b AuthClass) bool) AuthClassArray
Sort sorts slice of AuthClass.
func (AuthClassArray) SortStable ¶ added in v0.25.0
func (s AuthClassArray) SortStable(less func(a, b AuthClass) bool) AuthClassArray
SortStable sorts slice of AuthClass.
type AuthPassword ¶
type AuthPassword struct { // Name field of AuthPassword. Name string // Password field of AuthPassword. Password string }
AuthPassword represents TL type `authPassword#29bacabb`.
See https://localhost:80/doc/constructor/authPassword for reference.
func (*AuthPassword) Decode ¶
func (a *AuthPassword) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AuthPassword) DecodeBare ¶ added in v0.30.0
func (a *AuthPassword) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*AuthPassword) Encode ¶
func (a *AuthPassword) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*AuthPassword) EncodeBare ¶ added in v0.30.0
func (a *AuthPassword) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*AuthPassword) FillFrom ¶ added in v0.25.0
func (a *AuthPassword) FillFrom(from interface { GetName() (value string) GetPassword() (value string) })
FillFrom fills AuthPassword from given interface.
func (*AuthPassword) GetName ¶ added in v0.21.0
func (a *AuthPassword) GetName() (value string)
GetName returns value of Name field.
func (*AuthPassword) GetPassword ¶ added in v0.21.0
func (a *AuthPassword) GetPassword() (value string)
GetPassword returns value of Password field.
func (*AuthPassword) String ¶ added in v0.12.0
func (a *AuthPassword) String() string
String implements fmt.Stringer.
func (*AuthPassword) TypeID ¶ added in v0.21.0
func (*AuthPassword) TypeID() uint32
TypeID returns type id in TL schema.
func (*AuthPassword) TypeInfo ¶ added in v0.25.0
func (a *AuthPassword) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*AuthPassword) TypeName ¶ added in v0.25.0
func (*AuthPassword) TypeName() string
TypeName returns name of type in TL schema.
func (*AuthPassword) Zero ¶ added in v0.20.0
func (a *AuthPassword) Zero() bool
type AuthPasswordArray ¶ added in v0.25.0
type AuthPasswordArray []AuthPassword
AuthPasswordArray is adapter for slice of AuthPassword.
func (AuthPasswordArray) First ¶ added in v0.25.0
func (s AuthPasswordArray) First() (v AuthPassword, ok bool)
First returns first element of slice (if exists).
func (AuthPasswordArray) Last ¶ added in v0.25.0
func (s AuthPasswordArray) Last() (v AuthPassword, ok bool)
Last returns last element of slice (if exists).
func (*AuthPasswordArray) Pop ¶ added in v0.25.0
func (s *AuthPasswordArray) Pop() (v AuthPassword, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*AuthPasswordArray) PopFirst ¶ added in v0.25.0
func (s *AuthPasswordArray) PopFirst() (v AuthPassword, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (AuthPasswordArray) Retain ¶ added in v0.25.0
func (s AuthPasswordArray) Retain(keep func(x AuthPassword) bool) AuthPasswordArray
Retain filters in-place slice of AuthPassword.
func (AuthPasswordArray) Sort ¶ added in v0.25.0
func (s AuthPasswordArray) Sort(less func(a, b AuthPassword) bool) AuthPasswordArray
Sort sorts slice of AuthPassword.
func (AuthPasswordArray) SortStable ¶ added in v0.25.0
func (s AuthPasswordArray) SortStable(less func(a, b AuthPassword) bool) AuthPasswordArray
SortStable sorts slice of AuthPassword.
type BigMessage ¶
type BigMessage struct { // ID field of BigMessage. ID int32 // Count field of BigMessage. Count int32 // TargetID field of BigMessage. TargetID int32 // Escape field of BigMessage. Escape bool // Summary field of BigMessage. Summary bool }
BigMessage represents TL type `bigMessage#7490dcc5`.
See https://localhost:80/doc/constructor/bigMessage for reference.
func (*BigMessage) Decode ¶
func (b *BigMessage) Decode(buf *bin.Buffer) error
Decode implements bin.Decoder.
func (*BigMessage) DecodeBare ¶ added in v0.30.0
func (b *BigMessage) DecodeBare(buf *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*BigMessage) Encode ¶
func (b *BigMessage) Encode(buf *bin.Buffer) error
Encode implements bin.Encoder.
func (*BigMessage) EncodeBare ¶ added in v0.30.0
func (b *BigMessage) EncodeBare(buf *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*BigMessage) FillFrom ¶ added in v0.25.0
func (b *BigMessage) FillFrom(from interface { GetID() (value int32) GetCount() (value int32) GetTargetID() (value int32) GetEscape() (value bool) GetSummary() (value bool) })
FillFrom fills BigMessage from given interface.
func (*BigMessage) GetCount ¶ added in v0.21.0
func (b *BigMessage) GetCount() (value int32)
GetCount returns value of Count field.
func (*BigMessage) GetEscape ¶ added in v0.21.0
func (b *BigMessage) GetEscape() (value bool)
GetEscape returns value of Escape field.
func (*BigMessage) GetID ¶ added in v0.21.0
func (b *BigMessage) GetID() (value int32)
GetID returns value of ID field.
func (*BigMessage) GetSummary ¶ added in v0.21.0
func (b *BigMessage) GetSummary() (value bool)
GetSummary returns value of Summary field.
func (*BigMessage) GetTargetID ¶ added in v0.26.0
func (b *BigMessage) GetTargetID() (value int32)
GetTargetID returns value of TargetID field.
func (*BigMessage) String ¶ added in v0.12.0
func (b *BigMessage) String() string
String implements fmt.Stringer.
func (*BigMessage) TypeID ¶ added in v0.21.0
func (*BigMessage) TypeID() uint32
TypeID returns type id in TL schema.
func (*BigMessage) TypeInfo ¶ added in v0.25.0
func (b *BigMessage) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*BigMessage) TypeName ¶ added in v0.25.0
func (*BigMessage) TypeName() string
TypeName returns name of type in TL schema.
func (*BigMessage) Zero ¶ added in v0.20.0
func (b *BigMessage) Zero() bool
type BigMessageArray ¶ added in v0.25.0
type BigMessageArray []BigMessage
BigMessageArray is adapter for slice of BigMessage.
func (BigMessageArray) First ¶ added in v0.25.0
func (s BigMessageArray) First() (v BigMessage, ok bool)
First returns first element of slice (if exists).
func (BigMessageArray) Last ¶ added in v0.25.0
func (s BigMessageArray) Last() (v BigMessage, ok bool)
Last returns last element of slice (if exists).
func (*BigMessageArray) Pop ¶ added in v0.25.0
func (s *BigMessageArray) Pop() (v BigMessage, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*BigMessageArray) PopFirst ¶ added in v0.25.0
func (s *BigMessageArray) PopFirst() (v BigMessage, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (BigMessageArray) Retain ¶ added in v0.25.0
func (s BigMessageArray) Retain(keep func(x BigMessage) bool) BigMessageArray
Retain filters in-place slice of BigMessage.
func (BigMessageArray) Sort ¶ added in v0.25.0
func (s BigMessageArray) Sort(less func(a, b BigMessage) bool) BigMessageArray
Sort sorts slice of BigMessage.
func (BigMessageArray) SortStable ¶ added in v0.25.0
func (s BigMessageArray) SortStable(less func(a, b BigMessage) bool) BigMessageArray
SortStable sorts slice of BigMessage.
type BoolBox ¶
type BoolBox struct {
Bool BoolClass
}
Bool boxes the BoolClass providing a helper.
type BoolClass ¶
type BoolClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // contains filtered or unexported methods }
BoolClass represents Bool generic type.
See https://localhost:80/doc/type/Bool for reference.
Example:
g, err := td.DecodeBool(buf) if err != nil { panic(err) } switch v := g.(type) { case *td.False: // false#bc799737 case *td.True: // true#997275b5 default: panic(v) }
type BoolClassArray ¶ added in v0.25.0
type BoolClassArray []BoolClass
BoolClassArray is adapter for slice of BoolClass.
func (BoolClassArray) First ¶ added in v0.25.0
func (s BoolClassArray) First() (v BoolClass, ok bool)
First returns first element of slice (if exists).
func (BoolClassArray) Last ¶ added in v0.25.0
func (s BoolClassArray) Last() (v BoolClass, ok bool)
Last returns last element of slice (if exists).
func (*BoolClassArray) Pop ¶ added in v0.25.0
func (s *BoolClassArray) Pop() (v BoolClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*BoolClassArray) PopFirst ¶ added in v0.25.0
func (s *BoolClassArray) PopFirst() (v BoolClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (BoolClassArray) Retain ¶ added in v0.25.0
func (s BoolClassArray) Retain(keep func(x BoolClass) bool) BoolClassArray
Retain filters in-place slice of BoolClass.
func (BoolClassArray) Sort ¶ added in v0.25.0
func (s BoolClassArray) Sort(less func(a, b BoolClass) bool) BoolClassArray
Sort sorts slice of BoolClass.
func (BoolClassArray) SortStable ¶ added in v0.25.0
func (s BoolClassArray) SortStable(less func(a, b BoolClass) bool) BoolClassArray
SortStable sorts slice of BoolClass.
type Bytes ¶
type Bytes struct { }
Bytes represents TL type `bytes#e937bb82`.
See https://localhost:80/doc/constructor/bytes for reference.
func (*Bytes) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*Bytes) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type BytesMessage ¶
type BytesMessage struct { // Data field of BytesMessage. Data []byte }
BytesMessage represents TL type `bytesMessage#f990a67d`.
See https://localhost:80/doc/constructor/bytesMessage for reference.
func (*BytesMessage) Decode ¶
func (b *BytesMessage) Decode(buf *bin.Buffer) error
Decode implements bin.Decoder.
func (*BytesMessage) DecodeBare ¶ added in v0.30.0
func (b *BytesMessage) DecodeBare(buf *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*BytesMessage) Encode ¶
func (b *BytesMessage) Encode(buf *bin.Buffer) error
Encode implements bin.Encoder.
func (*BytesMessage) EncodeBare ¶ added in v0.30.0
func (b *BytesMessage) EncodeBare(buf *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*BytesMessage) FillFrom ¶ added in v0.25.0
func (b *BytesMessage) FillFrom(from interface { GetData() (value []byte) })
FillFrom fills BytesMessage from given interface.
func (*BytesMessage) GetData ¶ added in v0.21.0
func (b *BytesMessage) GetData() (value []byte)
GetData returns value of Data field.
func (*BytesMessage) String ¶ added in v0.12.0
func (b *BytesMessage) String() string
String implements fmt.Stringer.
func (*BytesMessage) TypeID ¶ added in v0.21.0
func (*BytesMessage) TypeID() uint32
TypeID returns type id in TL schema.
func (*BytesMessage) TypeInfo ¶ added in v0.25.0
func (b *BytesMessage) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*BytesMessage) TypeName ¶ added in v0.25.0
func (*BytesMessage) TypeName() string
TypeName returns name of type in TL schema.
func (*BytesMessage) Zero ¶ added in v0.20.0
func (b *BytesMessage) Zero() bool
type BytesMessageArray ¶ added in v0.25.0
type BytesMessageArray []BytesMessage
BytesMessageArray is adapter for slice of BytesMessage.
func (BytesMessageArray) First ¶ added in v0.25.0
func (s BytesMessageArray) First() (v BytesMessage, ok bool)
First returns first element of slice (if exists).
func (BytesMessageArray) Last ¶ added in v0.25.0
func (s BytesMessageArray) Last() (v BytesMessage, ok bool)
Last returns last element of slice (if exists).
func (*BytesMessageArray) Pop ¶ added in v0.25.0
func (s *BytesMessageArray) Pop() (v BytesMessage, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*BytesMessageArray) PopFirst ¶ added in v0.25.0
func (s *BytesMessageArray) PopFirst() (v BytesMessage, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (BytesMessageArray) Retain ¶ added in v0.25.0
func (s BytesMessageArray) Retain(keep func(x BytesMessage) bool) BytesMessageArray
Retain filters in-place slice of BytesMessage.
func (BytesMessageArray) Sort ¶ added in v0.25.0
func (s BytesMessageArray) Sort(less func(a, b BytesMessage) bool) BytesMessageArray
Sort sorts slice of BytesMessage.
func (BytesMessageArray) SortStable ¶ added in v0.25.0
func (s BytesMessageArray) SortStable(less func(a, b BytesMessage) bool) BytesMessageArray
SortStable sorts slice of BytesMessage.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implement methods for calling functions from TL schema via Invoker.
func (*Client) DoAuth ¶
DoAuth invokes method doAuth#fd2f6687 returning error if any.
See https://localhost:80/doc/method/doAuth for reference.
func (*Client) EchoVector ¶ added in v0.8.0
EchoVector invokes method echoVector#d4785939 returning error if any.
See https://localhost:80/doc/method/echoVector for reference.
func (*Client) Ping ¶
Ping invokes method ping#ce73048f returning error if any.
See https://localhost:80/doc/constructor/ping for reference.
func (*Client) Send ¶
Send invokes method send#f74488a returning error if any.
See https://localhost:80/doc/method/send for reference.
func (*Client) SendMultipleSMS ¶
SendMultipleSMS invokes method sendMultipleSMS#df18e5ca returning error if any.
See https://localhost:80/doc/constructor/sendMultipleSMS for reference.
type ClientDHInnerData ¶
type ClientDHInnerData struct { // Nonce field of ClientDHInnerData. Nonce bin.Int128 // ServerNonce field of ClientDHInnerData. ServerNonce bin.Int128 // RetryID field of ClientDHInnerData. RetryID int64 // GB field of ClientDHInnerData. GB string }
ClientDHInnerData represents TL type `client_DH_inner_data#6643b654`.
See https://localhost:80/doc/constructor/client_DH_inner_data for reference.
func (*ClientDHInnerData) Decode ¶
func (c *ClientDHInnerData) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ClientDHInnerData) DecodeBare ¶ added in v0.30.0
func (c *ClientDHInnerData) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*ClientDHInnerData) Encode ¶
func (c *ClientDHInnerData) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*ClientDHInnerData) EncodeBare ¶ added in v0.30.0
func (c *ClientDHInnerData) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*ClientDHInnerData) FillFrom ¶ added in v0.25.0
func (c *ClientDHInnerData) FillFrom(from interface { GetNonce() (value bin.Int128) GetServerNonce() (value bin.Int128) GetRetryID() (value int64) GetGB() (value string) })
FillFrom fills ClientDHInnerData from given interface.
func (*ClientDHInnerData) GetGB ¶ added in v0.21.0
func (c *ClientDHInnerData) GetGB() (value string)
GetGB returns value of GB field.
func (*ClientDHInnerData) GetNonce ¶ added in v0.21.0
func (c *ClientDHInnerData) GetNonce() (value bin.Int128)
GetNonce returns value of Nonce field.
func (*ClientDHInnerData) GetRetryID ¶ added in v0.21.0
func (c *ClientDHInnerData) GetRetryID() (value int64)
GetRetryID returns value of RetryID field.
func (*ClientDHInnerData) GetServerNonce ¶ added in v0.21.0
func (c *ClientDHInnerData) GetServerNonce() (value bin.Int128)
GetServerNonce returns value of ServerNonce field.
func (*ClientDHInnerData) String ¶ added in v0.12.0
func (c *ClientDHInnerData) String() string
String implements fmt.Stringer.
func (*ClientDHInnerData) TypeID ¶ added in v0.21.0
func (*ClientDHInnerData) TypeID() uint32
TypeID returns type id in TL schema.
func (*ClientDHInnerData) TypeInfo ¶ added in v0.25.0
func (c *ClientDHInnerData) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*ClientDHInnerData) TypeName ¶ added in v0.25.0
func (*ClientDHInnerData) TypeName() string
TypeName returns name of type in TL schema.
func (*ClientDHInnerData) Zero ¶ added in v0.20.0
func (c *ClientDHInnerData) Zero() bool
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`.
See https://localhost:80/doc/constructor/config for reference.
func (*Config) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*Config) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
func (*Config) FillFrom ¶ added in v0.25.0
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 ¶ added in v0.21.0
GetBlockedMode returns value of BlockedMode conditional field.
func (*Config) GetCallConnectTimeoutMs ¶ added in v0.21.0
GetCallConnectTimeoutMs returns value of CallConnectTimeoutMs field.
func (*Config) GetCallPacketTimeoutMs ¶ added in v0.21.0
GetCallPacketTimeoutMs returns value of CallPacketTimeoutMs field.
func (*Config) GetCallReceiveTimeoutMs ¶ added in v0.21.0
GetCallReceiveTimeoutMs returns value of CallReceiveTimeoutMs field.
func (*Config) GetCallRingTimeoutMs ¶ added in v0.21.0
GetCallRingTimeoutMs returns value of CallRingTimeoutMs field.
func (*Config) GetCaptionLengthMax ¶ added in v0.21.0
GetCaptionLengthMax returns value of CaptionLengthMax field.
func (*Config) GetChannelsReadMediaPeriod ¶ added in v0.21.0
GetChannelsReadMediaPeriod returns value of ChannelsReadMediaPeriod field.
func (*Config) GetChatSizeMax ¶ added in v0.21.0
GetChatSizeMax returns value of ChatSizeMax field.
func (*Config) GetDCOptions ¶ added in v0.21.0
GetDCOptions returns value of DCOptions field.
func (*Config) GetDCTxtDomainName ¶ added in v0.21.0
GetDCTxtDomainName returns value of DCTxtDomainName field.
func (*Config) GetDefaultP2PContacts ¶ added in v0.21.0
GetDefaultP2PContacts returns value of DefaultP2PContacts conditional field.
func (*Config) GetEditTimeLimit ¶ added in v0.21.0
GetEditTimeLimit returns value of EditTimeLimit field.
func (*Config) GetExpires ¶ added in v0.21.0
GetExpires returns value of Expires field.
func (*Config) GetForwardedCountMax ¶ added in v0.21.0
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 ¶ added in v0.21.0
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 ¶ added in v0.21.0
GetMeURLPrefix returns value of MeURLPrefix field.
func (*Config) GetMegagroupSizeMax ¶ added in v0.21.0
GetMegagroupSizeMax returns value of MegagroupSizeMax field.
func (*Config) GetMessageLengthMax ¶ added in v0.21.0
GetMessageLengthMax returns value of MessageLengthMax field.
func (*Config) GetNotifyCloudDelayMs ¶ added in v0.21.0
GetNotifyCloudDelayMs returns value of NotifyCloudDelayMs field.
func (*Config) GetNotifyDefaultDelayMs ¶ added in v0.21.0
GetNotifyDefaultDelayMs returns value of NotifyDefaultDelayMs field.
func (*Config) GetOfflineBlurTimeoutMs ¶ added in v0.21.0
GetOfflineBlurTimeoutMs returns value of OfflineBlurTimeoutMs field.
func (*Config) GetOfflineIdleTimeoutMs ¶ added in v0.21.0
GetOfflineIdleTimeoutMs returns value of OfflineIdleTimeoutMs field.
func (*Config) GetOnlineCloudTimeoutMs ¶ added in v0.21.0
GetOnlineCloudTimeoutMs returns value of OnlineCloudTimeoutMs field.
func (*Config) GetOnlineUpdatePeriodMs ¶ added in v0.21.0
GetOnlineUpdatePeriodMs returns value of OnlineUpdatePeriodMs field.
func (*Config) GetPFSEnabled ¶ added in v0.21.0
GetPFSEnabled returns value of PFSEnabled conditional field.
func (*Config) GetPhonecallsEnabled ¶ added in v0.21.0
GetPhonecallsEnabled returns value of PhonecallsEnabled conditional field.
func (*Config) GetPinnedDialogsCountMax ¶ added in v0.21.0
GetPinnedDialogsCountMax returns value of PinnedDialogsCountMax field.
func (*Config) GetPinnedInfolderCountMax ¶ added in v0.21.0
GetPinnedInfolderCountMax returns value of PinnedInfolderCountMax field.
func (*Config) GetPreloadFeaturedStickers ¶ added in v0.21.0
GetPreloadFeaturedStickers returns value of PreloadFeaturedStickers conditional field.
func (*Config) GetPushChatLimit ¶ added in v0.21.0
GetPushChatLimit returns value of PushChatLimit field.
func (*Config) GetPushChatPeriodMs ¶ added in v0.21.0
GetPushChatPeriodMs returns value of PushChatPeriodMs field.
func (*Config) GetRatingEDecay ¶ added in v0.21.0
GetRatingEDecay returns value of RatingEDecay field.
func (*Config) GetRevokePmInbox ¶ added in v0.21.0
GetRevokePmInbox returns value of RevokePmInbox conditional field.
func (*Config) GetRevokePmTimeLimit ¶ added in v0.21.0
GetRevokePmTimeLimit returns value of RevokePmTimeLimit field.
func (*Config) GetRevokeTimeLimit ¶ added in v0.21.0
GetRevokeTimeLimit returns value of RevokeTimeLimit field.
func (*Config) GetSavedGifsLimit ¶ added in v0.21.0
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 ¶ added in v0.21.0
GetStickersFavedLimit returns value of StickersFavedLimit field.
func (*Config) GetStickersRecentLimit ¶ added in v0.21.0
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 ¶ added in v0.21.0
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 ¶ added in v0.21.0
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`.
See https://localhost:80/doc/constructor/dcOption for reference.
func (*DCOption) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*DCOption) EncodeBare ¶ added in v0.30.0
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) 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.
type DoAuthRequest ¶
type DoAuthRequest struct { }
DoAuthRequest represents TL type `doAuth#fd2f6687`.
See https://localhost:80/doc/method/doAuth for reference.
func (*DoAuthRequest) Decode ¶
func (d *DoAuthRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DoAuthRequest) DecodeBare ¶ added in v0.30.0
func (d *DoAuthRequest) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DoAuthRequest) Encode ¶
func (d *DoAuthRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DoAuthRequest) EncodeBare ¶ added in v0.30.0
func (d *DoAuthRequest) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DoAuthRequest) String ¶ added in v0.12.0
func (d *DoAuthRequest) String() string
String implements fmt.Stringer.
func (*DoAuthRequest) TypeID ¶ added in v0.21.0
func (*DoAuthRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*DoAuthRequest) TypeInfo ¶ added in v0.25.0
func (d *DoAuthRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DoAuthRequest) TypeName ¶ added in v0.25.0
func (*DoAuthRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*DoAuthRequest) Zero ¶ added in v0.20.0
func (d *DoAuthRequest) Zero() bool
type EchoVectorRequest ¶ added in v0.8.0
type EchoVectorRequest struct { // IDs field of EchoVectorRequest. IDs []int }
EchoVectorRequest represents TL type `echoVector#d4785939`.
See https://localhost:80/doc/method/echoVector for reference.
func (*EchoVectorRequest) Decode ¶ added in v0.8.0
func (e *EchoVectorRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*EchoVectorRequest) DecodeBare ¶ added in v0.30.0
func (e *EchoVectorRequest) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*EchoVectorRequest) Encode ¶ added in v0.8.0
func (e *EchoVectorRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*EchoVectorRequest) EncodeBare ¶ added in v0.30.0
func (e *EchoVectorRequest) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*EchoVectorRequest) FillFrom ¶ added in v0.25.0
func (e *EchoVectorRequest) FillFrom(from interface { GetIDs() (value []int) })
FillFrom fills EchoVectorRequest from given interface.
func (*EchoVectorRequest) GetIDs ¶ added in v0.26.0
func (e *EchoVectorRequest) GetIDs() (value []int)
GetIDs returns value of IDs field.
func (*EchoVectorRequest) String ¶ added in v0.12.0
func (e *EchoVectorRequest) String() string
String implements fmt.Stringer.
func (*EchoVectorRequest) TypeID ¶ added in v0.21.0
func (*EchoVectorRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*EchoVectorRequest) TypeInfo ¶ added in v0.25.0
func (e *EchoVectorRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*EchoVectorRequest) TypeName ¶ added in v0.25.0
func (*EchoVectorRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*EchoVectorRequest) Zero ¶ added in v0.20.0
func (e *EchoVectorRequest) Zero() bool
type Error ¶
type Error struct { // Error code; subject to future changes. If the error code is 406, the error message // must not be processed in any way and must not be displayed to the user Code int32 // Error message; subject to future changes Message string // Temporary field of Error. Temporary bool }
Error represents TL type `error#14feebbc`.
See https://localhost:80/doc/constructor/error for reference.
func (*Error) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*Error) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
func (*Error) FillFrom ¶ added in v0.25.0
func (e *Error) FillFrom(from interface { GetCode() (value int32) GetMessage() (value string) GetTemporary() (value bool) })
FillFrom fills Error from given interface.
func (*Error) GetMessage ¶ added in v0.21.0
GetMessage returns value of Message field.
func (*Error) GetTemporary ¶ added in v0.21.0
GetTemporary returns value of Temporary field.
type False ¶
type False struct { }
False represents TL type `false#bc799737`.
See https://localhost:80/doc/constructor/false for reference.
func (*False) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*False) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type FieldsMessage ¶
type FieldsMessage struct { // Flags field of FieldsMessage. Flags bin.Fields // Escape field of FieldsMessage. // // Use SetEscape and GetEscape helpers. Escape bool // TTLSeconds field of FieldsMessage. // // Use SetTTLSeconds and GetTTLSeconds helpers. TTLSeconds int }
FieldsMessage represents TL type `fieldsMessage#947225b5`.
See https://localhost:80/doc/constructor/fieldsMessage for reference.
func (*FieldsMessage) Decode ¶
func (f *FieldsMessage) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*FieldsMessage) DecodeBare ¶ added in v0.30.0
func (f *FieldsMessage) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*FieldsMessage) Encode ¶
func (f *FieldsMessage) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*FieldsMessage) EncodeBare ¶ added in v0.30.0
func (f *FieldsMessage) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*FieldsMessage) FillFrom ¶ added in v0.25.0
func (f *FieldsMessage) FillFrom(from interface { GetEscape() (value bool, ok bool) GetTTLSeconds() (value int, ok bool) })
FillFrom fills FieldsMessage from given interface.
func (*FieldsMessage) GetEscape ¶ added in v0.17.0
func (f *FieldsMessage) GetEscape() (value bool, ok bool)
GetEscape returns value of Escape conditional field and boolean which is true if field was set.
func (*FieldsMessage) GetTTLSeconds ¶
func (f *FieldsMessage) GetTTLSeconds() (value int, ok bool)
GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set.
func (*FieldsMessage) SetEscape ¶
func (f *FieldsMessage) SetEscape(value bool)
SetEscape sets value of Escape conditional field.
func (*FieldsMessage) SetTTLSeconds ¶
func (f *FieldsMessage) SetTTLSeconds(value int)
SetTTLSeconds sets value of TTLSeconds conditional field.
func (*FieldsMessage) String ¶ added in v0.12.0
func (f *FieldsMessage) String() string
String implements fmt.Stringer.
func (*FieldsMessage) TypeID ¶ added in v0.21.0
func (*FieldsMessage) TypeID() uint32
TypeID returns type id in TL schema.
func (*FieldsMessage) TypeInfo ¶ added in v0.25.0
func (f *FieldsMessage) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*FieldsMessage) TypeName ¶ added in v0.25.0
func (*FieldsMessage) TypeName() string
TypeName returns name of type in TL schema.
func (*FieldsMessage) Zero ¶ added in v0.20.0
func (f *FieldsMessage) Zero() bool
type FieldsMessageArray ¶ added in v0.25.0
type FieldsMessageArray []FieldsMessage
FieldsMessageArray is adapter for slice of FieldsMessage.
func (FieldsMessageArray) First ¶ added in v0.25.0
func (s FieldsMessageArray) First() (v FieldsMessage, ok bool)
First returns first element of slice (if exists).
func (FieldsMessageArray) Last ¶ added in v0.25.0
func (s FieldsMessageArray) Last() (v FieldsMessage, ok bool)
Last returns last element of slice (if exists).
func (*FieldsMessageArray) Pop ¶ added in v0.25.0
func (s *FieldsMessageArray) Pop() (v FieldsMessage, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*FieldsMessageArray) PopFirst ¶ added in v0.25.0
func (s *FieldsMessageArray) PopFirst() (v FieldsMessage, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (FieldsMessageArray) Retain ¶ added in v0.25.0
func (s FieldsMessageArray) Retain(keep func(x FieldsMessage) bool) FieldsMessageArray
Retain filters in-place slice of FieldsMessage.
func (FieldsMessageArray) Sort ¶ added in v0.25.0
func (s FieldsMessageArray) Sort(less func(a, b FieldsMessage) bool) FieldsMessageArray
Sort sorts slice of FieldsMessage.
func (FieldsMessageArray) SortStable ¶ added in v0.25.0
func (s FieldsMessageArray) SortStable(less func(a, b FieldsMessage) bool) FieldsMessageArray
SortStable sorts slice of FieldsMessage.
type GetUpdatesResp ¶
type GetUpdatesResp struct { // Updates field of GetUpdatesResp. Updates []AbstractMessageClass }
GetUpdatesResp represents TL type `getUpdatesResp#300bb5e1`.
See https://localhost:80/doc/constructor/getUpdatesResp for reference.
func (*GetUpdatesResp) Decode ¶
func (g *GetUpdatesResp) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*GetUpdatesResp) DecodeBare ¶ added in v0.30.0
func (g *GetUpdatesResp) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*GetUpdatesResp) Encode ¶
func (g *GetUpdatesResp) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*GetUpdatesResp) EncodeBare ¶ added in v0.30.0
func (g *GetUpdatesResp) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*GetUpdatesResp) FillFrom ¶ added in v0.25.0
func (g *GetUpdatesResp) FillFrom(from interface { GetUpdates() (value []AbstractMessageClass) })
FillFrom fills GetUpdatesResp from given interface.
func (*GetUpdatesResp) GetUpdates ¶ added in v0.21.0
func (g *GetUpdatesResp) GetUpdates() (value []AbstractMessageClass)
GetUpdates returns value of Updates field.
func (*GetUpdatesResp) MapUpdates ¶ added in v0.25.0
func (g *GetUpdatesResp) MapUpdates() (value AbstractMessageClassArray)
MapUpdates returns field Updates wrapped in AbstractMessageClassArray helper.
func (*GetUpdatesResp) String ¶ added in v0.12.0
func (g *GetUpdatesResp) String() string
String implements fmt.Stringer.
func (*GetUpdatesResp) TypeID ¶ added in v0.21.0
func (*GetUpdatesResp) TypeID() uint32
TypeID returns type id in TL schema.
func (*GetUpdatesResp) TypeInfo ¶ added in v0.25.0
func (g *GetUpdatesResp) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*GetUpdatesResp) TypeName ¶ added in v0.25.0
func (*GetUpdatesResp) TypeName() string
TypeName returns name of type in TL schema.
func (*GetUpdatesResp) Zero ¶ added in v0.20.0
func (g *GetUpdatesResp) Zero() bool
type Int32 ¶
type Int32 struct { }
Int32 represents TL type `int32#5cb934fa`.
See https://localhost:80/doc/constructor/int32 for reference.
func (*Int32) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*Int32) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type IntVector ¶ added in v0.8.0
type IntVector struct { // Elements of Vector<int> Elems []int }
IntVector is a box for Vector<int>
func (*IntVector) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*IntVector) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type InvokeWithLayer ¶ added in v0.18.0
type InvokeWithLayer struct { // Layer field of InvokeWithLayer. Layer int // Query field of InvokeWithLayer. Query bin.Object }
InvokeWithLayer represents TL type `invokeWithLayer#da9b0d0d`.
See https://localhost:80/doc/constructor/invokeWithLayer for reference.
func (*InvokeWithLayer) Decode ¶ added in v0.18.0
func (i *InvokeWithLayer) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InvokeWithLayer) DecodeBare ¶ added in v0.30.0
func (i *InvokeWithLayer) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*InvokeWithLayer) Encode ¶ added in v0.18.0
func (i *InvokeWithLayer) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*InvokeWithLayer) EncodeBare ¶ added in v0.30.0
func (i *InvokeWithLayer) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*InvokeWithLayer) FillFrom ¶ added in v0.25.0
func (i *InvokeWithLayer) FillFrom(from interface { GetLayer() (value int) GetQuery() (value bin.Object) })
FillFrom fills InvokeWithLayer from given interface.
func (*InvokeWithLayer) GetLayer ¶ added in v0.21.0
func (i *InvokeWithLayer) GetLayer() (value int)
GetLayer returns value of Layer field.
func (*InvokeWithLayer) GetQuery ¶ added in v0.21.0
func (i *InvokeWithLayer) GetQuery() (value bin.Object)
GetQuery returns value of Query field.
func (*InvokeWithLayer) String ¶ added in v0.18.0
func (i *InvokeWithLayer) String() string
String implements fmt.Stringer.
func (*InvokeWithLayer) TypeID ¶ added in v0.21.0
func (*InvokeWithLayer) TypeID() uint32
TypeID returns type id in TL schema.
func (*InvokeWithLayer) TypeInfo ¶ added in v0.25.0
func (i *InvokeWithLayer) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*InvokeWithLayer) TypeName ¶ added in v0.25.0
func (*InvokeWithLayer) TypeName() string
TypeName returns name of type in TL schema.
func (*InvokeWithLayer) Zero ¶ added in v0.20.0
func (i *InvokeWithLayer) Zero() bool
type Message ¶
type Message struct { // Err field of Message. Err Error }
Message represents TL type `message#ec200d96`.
See https://localhost:80/doc/constructor/message for reference.
func (*Message) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*Message) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type NoMessage ¶
type NoMessage struct { }
NoMessage represents TL type `noMessage#ee6324c4`.
See https://localhost:80/doc/constructor/noMessage for reference.
func (*NoMessage) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*NoMessage) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type Ok ¶
type Ok struct { }
Ok represents TL type `ok#d4edbe69`.
See https://localhost:80/doc/constructor/ok for reference.
func (*Ok) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*Ok) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type PingRequest ¶
type PingRequest struct { // ID field of PingRequest. ID int32 }
PingRequest represents TL type `ping#ce73048f`.
See https://localhost:80/doc/constructor/ping for reference.
func (*PingRequest) Decode ¶
func (p *PingRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*PingRequest) DecodeBare ¶ added in v0.30.0
func (p *PingRequest) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*PingRequest) Encode ¶
func (p *PingRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*PingRequest) EncodeBare ¶ added in v0.30.0
func (p *PingRequest) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*PingRequest) FillFrom ¶ added in v0.25.0
func (p *PingRequest) FillFrom(from interface { GetID() (value int32) })
FillFrom fills PingRequest from given interface.
func (*PingRequest) GetID ¶ added in v0.21.0
func (p *PingRequest) GetID() (value int32)
GetID returns value of ID field.
func (*PingRequest) String ¶ added in v0.12.0
func (p *PingRequest) String() string
String implements fmt.Stringer.
func (*PingRequest) TypeID ¶ added in v0.21.0
func (*PingRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*PingRequest) TypeInfo ¶ added in v0.25.0
func (p *PingRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*PingRequest) TypeName ¶ added in v0.25.0
func (*PingRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*PingRequest) Zero ¶ added in v0.20.0
func (p *PingRequest) Zero() bool
type ResponseBox ¶
type ResponseBox struct {
Response ResponseClass
}
Response boxes the ResponseClass providing a helper.
type ResponseClass ¶
type ResponseClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // contains filtered or unexported methods }
ResponseClass represents Response generic type.
See https://localhost:80/doc/type/Response for reference.
Example:
g, err := td.DecodeResponse(buf) if err != nil { panic(err) } switch v := g.(type) { case *td.ResponseID: // responseID#85d7fd8b case *td.ResponseText: // responseText#cb0244f2 default: panic(v) }
func DecodeResponse ¶
func DecodeResponse(buf *bin.Buffer) (ResponseClass, error)
DecodeResponse implements binary de-serialization for ResponseClass.
type ResponseClassArray ¶ added in v0.25.0
type ResponseClassArray []ResponseClass
ResponseClassArray is adapter for slice of ResponseClass.
func (ResponseClassArray) AsResponseID ¶ added in v0.25.0
func (s ResponseClassArray) AsResponseID() (to ResponseIDArray)
AsResponseID returns copy with only ResponseID constructors.
func (ResponseClassArray) AsResponseText ¶ added in v0.25.0
func (s ResponseClassArray) AsResponseText() (to ResponseTextArray)
AsResponseText returns copy with only ResponseText constructors.
func (ResponseClassArray) First ¶ added in v0.25.0
func (s ResponseClassArray) First() (v ResponseClass, ok bool)
First returns first element of slice (if exists).
func (ResponseClassArray) Last ¶ added in v0.25.0
func (s ResponseClassArray) Last() (v ResponseClass, ok bool)
Last returns last element of slice (if exists).
func (*ResponseClassArray) Pop ¶ added in v0.25.0
func (s *ResponseClassArray) Pop() (v ResponseClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*ResponseClassArray) PopFirst ¶ added in v0.25.0
func (s *ResponseClassArray) PopFirst() (v ResponseClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (ResponseClassArray) Retain ¶ added in v0.25.0
func (s ResponseClassArray) Retain(keep func(x ResponseClass) bool) ResponseClassArray
Retain filters in-place slice of ResponseClass.
func (ResponseClassArray) Sort ¶ added in v0.25.0
func (s ResponseClassArray) Sort(less func(a, b ResponseClass) bool) ResponseClassArray
Sort sorts slice of ResponseClass.
func (ResponseClassArray) SortStable ¶ added in v0.25.0
func (s ResponseClassArray) SortStable(less func(a, b ResponseClass) bool) ResponseClassArray
SortStable sorts slice of ResponseClass.
type ResponseID ¶
type ResponseID struct { // ID field of ResponseID. ID int32 }
ResponseID represents TL type `responseID#85d7fd8b`.
See https://localhost:80/doc/constructor/responseID for reference.
func (*ResponseID) Decode ¶
func (r *ResponseID) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ResponseID) DecodeBare ¶ added in v0.30.0
func (r *ResponseID) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*ResponseID) Encode ¶
func (r *ResponseID) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*ResponseID) EncodeBare ¶ added in v0.30.0
func (r *ResponseID) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*ResponseID) FillFrom ¶ added in v0.25.0
func (r *ResponseID) FillFrom(from interface { GetID() (value int32) })
FillFrom fills ResponseID from given interface.
func (*ResponseID) GetID ¶ added in v0.21.0
func (r *ResponseID) GetID() (value int32)
GetID returns value of ID field.
func (*ResponseID) String ¶ added in v0.12.0
func (r *ResponseID) String() string
String implements fmt.Stringer.
func (*ResponseID) TypeID ¶ added in v0.21.0
func (*ResponseID) TypeID() uint32
TypeID returns type id in TL schema.
func (*ResponseID) TypeInfo ¶ added in v0.25.0
func (r *ResponseID) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*ResponseID) TypeName ¶ added in v0.25.0
func (*ResponseID) TypeName() string
TypeName returns name of type in TL schema.
func (*ResponseID) Zero ¶ added in v0.20.0
func (r *ResponseID) Zero() bool
type ResponseIDArray ¶ added in v0.25.0
type ResponseIDArray []ResponseID
ResponseIDArray is adapter for slice of ResponseID.
func (ResponseIDArray) First ¶ added in v0.25.0
func (s ResponseIDArray) First() (v ResponseID, ok bool)
First returns first element of slice (if exists).
func (ResponseIDArray) Last ¶ added in v0.25.0
func (s ResponseIDArray) Last() (v ResponseID, ok bool)
Last returns last element of slice (if exists).
func (*ResponseIDArray) Pop ¶ added in v0.25.0
func (s *ResponseIDArray) Pop() (v ResponseID, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*ResponseIDArray) PopFirst ¶ added in v0.25.0
func (s *ResponseIDArray) PopFirst() (v ResponseID, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (ResponseIDArray) Retain ¶ added in v0.25.0
func (s ResponseIDArray) Retain(keep func(x ResponseID) bool) ResponseIDArray
Retain filters in-place slice of ResponseID.
func (ResponseIDArray) Sort ¶ added in v0.25.0
func (s ResponseIDArray) Sort(less func(a, b ResponseID) bool) ResponseIDArray
Sort sorts slice of ResponseID.
func (ResponseIDArray) SortStable ¶ added in v0.25.0
func (s ResponseIDArray) SortStable(less func(a, b ResponseID) bool) ResponseIDArray
SortStable sorts slice of ResponseID.
type ResponseText ¶
type ResponseText struct { // Text field of ResponseText. Text string }
ResponseText represents TL type `responseText#cb0244f2`.
See https://localhost:80/doc/constructor/responseText for reference.
func (*ResponseText) Decode ¶
func (r *ResponseText) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ResponseText) DecodeBare ¶ added in v0.30.0
func (r *ResponseText) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*ResponseText) Encode ¶
func (r *ResponseText) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*ResponseText) EncodeBare ¶ added in v0.30.0
func (r *ResponseText) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*ResponseText) FillFrom ¶ added in v0.25.0
func (r *ResponseText) FillFrom(from interface { GetText() (value string) })
FillFrom fills ResponseText from given interface.
func (*ResponseText) GetText ¶ added in v0.21.0
func (r *ResponseText) GetText() (value string)
GetText returns value of Text field.
func (*ResponseText) String ¶ added in v0.12.0
func (r *ResponseText) String() string
String implements fmt.Stringer.
func (*ResponseText) TypeID ¶ added in v0.21.0
func (*ResponseText) TypeID() uint32
TypeID returns type id in TL schema.
func (*ResponseText) TypeInfo ¶ added in v0.25.0
func (r *ResponseText) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*ResponseText) TypeName ¶ added in v0.25.0
func (*ResponseText) TypeName() string
TypeName returns name of type in TL schema.
func (*ResponseText) Zero ¶ added in v0.20.0
func (r *ResponseText) Zero() bool
type ResponseTextArray ¶ added in v0.25.0
type ResponseTextArray []ResponseText
ResponseTextArray is adapter for slice of ResponseText.
func (ResponseTextArray) First ¶ added in v0.25.0
func (s ResponseTextArray) First() (v ResponseText, ok bool)
First returns first element of slice (if exists).
func (ResponseTextArray) Last ¶ added in v0.25.0
func (s ResponseTextArray) Last() (v ResponseText, ok bool)
Last returns last element of slice (if exists).
func (*ResponseTextArray) Pop ¶ added in v0.25.0
func (s *ResponseTextArray) Pop() (v ResponseText, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*ResponseTextArray) PopFirst ¶ added in v0.25.0
func (s *ResponseTextArray) PopFirst() (v ResponseText, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (ResponseTextArray) Retain ¶ added in v0.25.0
func (s ResponseTextArray) Retain(keep func(x ResponseText) bool) ResponseTextArray
Retain filters in-place slice of ResponseText.
func (ResponseTextArray) Sort ¶ added in v0.25.0
func (s ResponseTextArray) Sort(less func(a, b ResponseText) bool) ResponseTextArray
Sort sorts slice of ResponseText.
func (ResponseTextArray) SortStable ¶ added in v0.25.0
func (s ResponseTextArray) SortStable(less func(a, b ResponseText) bool) ResponseTextArray
SortStable sorts slice of ResponseText.
type SMS ¶
type SMS struct { // Text field of SMS. Text string }
SMS represents TL type `sms#ed8bebfe`.
See https://localhost:80/doc/constructor/sms for reference.
func (*SMS) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*SMS) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type SendMultipleSMSRequest ¶
type SendMultipleSMSRequest struct { // Messages field of SendMultipleSMSRequest. Messages []SMS }
SendMultipleSMSRequest represents TL type `sendMultipleSMS#df18e5ca`.
See https://localhost:80/doc/constructor/sendMultipleSMS for reference.
func (*SendMultipleSMSRequest) Decode ¶
func (s *SendMultipleSMSRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMultipleSMSRequest) DecodeBare ¶ added in v0.30.0
func (s *SendMultipleSMSRequest) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMultipleSMSRequest) Encode ¶
func (s *SendMultipleSMSRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMultipleSMSRequest) EncodeBare ¶ added in v0.30.0
func (s *SendMultipleSMSRequest) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMultipleSMSRequest) FillFrom ¶ added in v0.25.0
func (s *SendMultipleSMSRequest) FillFrom(from interface { GetMessages() (value []SMS) })
FillFrom fills SendMultipleSMSRequest from given interface.
func (*SendMultipleSMSRequest) GetMessages ¶ added in v0.21.0
func (s *SendMultipleSMSRequest) GetMessages() (value []SMS)
GetMessages returns value of Messages field.
func (*SendMultipleSMSRequest) String ¶ added in v0.12.0
func (s *SendMultipleSMSRequest) String() string
String implements fmt.Stringer.
func (*SendMultipleSMSRequest) TypeID ¶ added in v0.21.0
func (*SendMultipleSMSRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMultipleSMSRequest) TypeInfo ¶ added in v0.25.0
func (s *SendMultipleSMSRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMultipleSMSRequest) TypeName ¶ added in v0.25.0
func (*SendMultipleSMSRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMultipleSMSRequest) Zero ¶ added in v0.20.0
func (s *SendMultipleSMSRequest) Zero() bool
type SendRequest ¶
type SendRequest struct { // Msg field of SendRequest. Msg SMS }
SendRequest represents TL type `send#f74488a`.
See https://localhost:80/doc/method/send for reference.
func (*SendRequest) Decode ¶
func (s *SendRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendRequest) DecodeBare ¶ added in v0.30.0
func (s *SendRequest) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendRequest) Encode ¶
func (s *SendRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendRequest) EncodeBare ¶ added in v0.30.0
func (s *SendRequest) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendRequest) FillFrom ¶ added in v0.25.0
func (s *SendRequest) FillFrom(from interface { GetMsg() (value SMS) })
FillFrom fills SendRequest from given interface.
func (*SendRequest) GetMsg ¶ added in v0.21.0
func (s *SendRequest) GetMsg() (value SMS)
GetMsg returns value of Msg field.
func (*SendRequest) String ¶ added in v0.12.0
func (s *SendRequest) String() string
String implements fmt.Stringer.
func (*SendRequest) TypeID ¶ added in v0.21.0
func (*SendRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendRequest) TypeInfo ¶ added in v0.25.0
func (s *SendRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendRequest) TypeName ¶ added in v0.25.0
func (*SendRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*SendRequest) Zero ¶ added in v0.20.0
func (s *SendRequest) Zero() bool
type String ¶
type String struct { }
String represents TL type `string#b5286e24`.
See https://localhost:80/doc/constructor/string for reference.
func (*String) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*String) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type TargetsMessage ¶
type TargetsMessage struct { // Targets field of TargetsMessage. Targets []int32 }
TargetsMessage represents TL type `targetsMessage#cc6136f1`.
See https://localhost:80/doc/constructor/targetsMessage for reference.
func (*TargetsMessage) Decode ¶
func (t *TargetsMessage) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TargetsMessage) DecodeBare ¶ added in v0.30.0
func (t *TargetsMessage) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TargetsMessage) Encode ¶
func (t *TargetsMessage) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TargetsMessage) EncodeBare ¶ added in v0.30.0
func (t *TargetsMessage) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TargetsMessage) FillFrom ¶ added in v0.25.0
func (t *TargetsMessage) FillFrom(from interface { GetTargets() (value []int32) })
FillFrom fills TargetsMessage from given interface.
func (*TargetsMessage) GetTargets ¶ added in v0.21.0
func (t *TargetsMessage) GetTargets() (value []int32)
GetTargets returns value of Targets field.
func (*TargetsMessage) String ¶ added in v0.12.0
func (t *TargetsMessage) String() string
String implements fmt.Stringer.
func (*TargetsMessage) TypeID ¶ added in v0.21.0
func (*TargetsMessage) TypeID() uint32
TypeID returns type id in TL schema.
func (*TargetsMessage) TypeInfo ¶ added in v0.25.0
func (t *TargetsMessage) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TargetsMessage) TypeName ¶ added in v0.25.0
func (*TargetsMessage) TypeName() string
TypeName returns name of type in TL schema.
func (*TargetsMessage) Zero ¶ added in v0.20.0
func (t *TargetsMessage) Zero() bool
type TargetsMessageArray ¶ added in v0.25.0
type TargetsMessageArray []TargetsMessage
TargetsMessageArray is adapter for slice of TargetsMessage.
func (TargetsMessageArray) First ¶ added in v0.25.0
func (s TargetsMessageArray) First() (v TargetsMessage, ok bool)
First returns first element of slice (if exists).
func (TargetsMessageArray) Last ¶ added in v0.25.0
func (s TargetsMessageArray) Last() (v TargetsMessage, ok bool)
Last returns last element of slice (if exists).
func (*TargetsMessageArray) Pop ¶ added in v0.25.0
func (s *TargetsMessageArray) Pop() (v TargetsMessage, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*TargetsMessageArray) PopFirst ¶ added in v0.25.0
func (s *TargetsMessageArray) PopFirst() (v TargetsMessage, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (TargetsMessageArray) Retain ¶ added in v0.25.0
func (s TargetsMessageArray) Retain(keep func(x TargetsMessage) bool) TargetsMessageArray
Retain filters in-place slice of TargetsMessage.
func (TargetsMessageArray) Sort ¶ added in v0.25.0
func (s TargetsMessageArray) Sort(less func(a, b TargetsMessage) bool) TargetsMessageArray
Sort sorts slice of TargetsMessage.
func (TargetsMessageArray) SortStable ¶ added in v0.25.0
func (s TargetsMessageArray) SortStable(less func(a, b TargetsMessage) bool) TargetsMessageArray
SortStable sorts slice of TargetsMessage.
type TestBytes ¶
type TestBytes struct { // Bytes Value []byte }
TestBytes represents TL type `testBytes#a422c4de`.
See https://localhost:80/doc/constructor/testBytes for reference.
func (*TestBytes) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*TestBytes) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type TestInt ¶
type TestInt struct { // Number Value int32 }
TestInt represents TL type `testInt#ddbd2c09`.
See https://localhost:80/doc/constructor/testInt for reference.
func (*TestInt) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*TestInt) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type TestString ¶
type TestString struct { // String Value string }
TestString represents TL type `testString#fe56688c`.
See https://localhost:80/doc/constructor/testString for reference.
func (*TestString) Decode ¶
func (t *TestString) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TestString) DecodeBare ¶ added in v0.30.0
func (t *TestString) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TestString) Encode ¶
func (t *TestString) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TestString) EncodeBare ¶ added in v0.30.0
func (t *TestString) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TestString) FillFrom ¶ added in v0.25.0
func (t *TestString) FillFrom(from interface { GetValue() (value string) })
FillFrom fills TestString from given interface.
func (*TestString) GetValue ¶ added in v0.21.0
func (t *TestString) GetValue() (value string)
GetValue returns value of Value field.
func (*TestString) String ¶ added in v0.12.0
func (t *TestString) String() string
String implements fmt.Stringer.
func (*TestString) TypeID ¶ added in v0.21.0
func (*TestString) TypeID() uint32
TypeID returns type id in TL schema.
func (*TestString) TypeInfo ¶ added in v0.25.0
func (t *TestString) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TestString) TypeName ¶ added in v0.25.0
func (*TestString) TypeName() string
TypeName returns name of type in TL schema.
func (*TestString) Zero ¶ added in v0.20.0
func (t *TestString) Zero() bool
type TestVectorBytes ¶
type TestVectorBytes struct { // Value field of TestVectorBytes. Value [][]byte }
TestVectorBytes represents TL type `testVectorBytes#a590fb25`.
See https://localhost:80/doc/constructor/testVectorBytes for reference.
func (*TestVectorBytes) Decode ¶
func (t *TestVectorBytes) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TestVectorBytes) DecodeBare ¶ added in v0.30.0
func (t *TestVectorBytes) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TestVectorBytes) Encode ¶
func (t *TestVectorBytes) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TestVectorBytes) EncodeBare ¶ added in v0.30.0
func (t *TestVectorBytes) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TestVectorBytes) FillFrom ¶ added in v0.25.0
func (t *TestVectorBytes) FillFrom(from interface { GetValue() (value [][]byte) })
FillFrom fills TestVectorBytes from given interface.
func (*TestVectorBytes) GetValue ¶ added in v0.21.0
func (t *TestVectorBytes) GetValue() (value [][]byte)
GetValue returns value of Value field.
func (*TestVectorBytes) String ¶ added in v0.12.0
func (t *TestVectorBytes) String() string
String implements fmt.Stringer.
func (*TestVectorBytes) TypeID ¶ added in v0.21.0
func (*TestVectorBytes) TypeID() uint32
TypeID returns type id in TL schema.
func (*TestVectorBytes) TypeInfo ¶ added in v0.25.0
func (t *TestVectorBytes) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TestVectorBytes) TypeName ¶ added in v0.25.0
func (*TestVectorBytes) TypeName() string
TypeName returns name of type in TL schema.
func (*TestVectorBytes) Zero ¶ added in v0.20.0
func (t *TestVectorBytes) Zero() bool
type TestVectorInt ¶
type TestVectorInt struct { // Vector of numbers Value []int32 }
TestVectorInt represents TL type `testVectorInt#df9eb113`.
See https://localhost:80/doc/constructor/testVectorInt for reference.
func (*TestVectorInt) Decode ¶
func (t *TestVectorInt) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TestVectorInt) DecodeBare ¶ added in v0.30.0
func (t *TestVectorInt) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TestVectorInt) Encode ¶
func (t *TestVectorInt) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TestVectorInt) EncodeBare ¶ added in v0.30.0
func (t *TestVectorInt) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TestVectorInt) FillFrom ¶ added in v0.25.0
func (t *TestVectorInt) FillFrom(from interface { GetValue() (value []int32) })
FillFrom fills TestVectorInt from given interface.
func (*TestVectorInt) GetValue ¶ added in v0.21.0
func (t *TestVectorInt) GetValue() (value []int32)
GetValue returns value of Value field.
func (*TestVectorInt) String ¶ added in v0.12.0
func (t *TestVectorInt) String() string
String implements fmt.Stringer.
func (*TestVectorInt) TypeID ¶ added in v0.21.0
func (*TestVectorInt) TypeID() uint32
TypeID returns type id in TL schema.
func (*TestVectorInt) TypeInfo ¶ added in v0.25.0
func (t *TestVectorInt) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TestVectorInt) TypeName ¶ added in v0.25.0
func (*TestVectorInt) TypeName() string
TypeName returns name of type in TL schema.
func (*TestVectorInt) Zero ¶ added in v0.20.0
func (t *TestVectorInt) Zero() bool
type TestVectorIntObject ¶
type TestVectorIntObject struct { // Vector of objects Value []TestInt }
TestVectorIntObject represents TL type `testVectorIntObject#f152999b`.
See https://localhost:80/doc/constructor/testVectorIntObject for reference.
func (*TestVectorIntObject) Decode ¶
func (t *TestVectorIntObject) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TestVectorIntObject) DecodeBare ¶ added in v0.30.0
func (t *TestVectorIntObject) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TestVectorIntObject) Encode ¶
func (t *TestVectorIntObject) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TestVectorIntObject) EncodeBare ¶ added in v0.30.0
func (t *TestVectorIntObject) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TestVectorIntObject) FillFrom ¶ added in v0.25.0
func (t *TestVectorIntObject) FillFrom(from interface { GetValue() (value []TestInt) })
FillFrom fills TestVectorIntObject from given interface.
func (*TestVectorIntObject) GetValue ¶ added in v0.21.0
func (t *TestVectorIntObject) GetValue() (value []TestInt)
GetValue returns value of Value field.
func (*TestVectorIntObject) String ¶ added in v0.12.0
func (t *TestVectorIntObject) String() string
String implements fmt.Stringer.
func (*TestVectorIntObject) TypeID ¶ added in v0.21.0
func (*TestVectorIntObject) TypeID() uint32
TypeID returns type id in TL schema.
func (*TestVectorIntObject) TypeInfo ¶ added in v0.25.0
func (t *TestVectorIntObject) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TestVectorIntObject) TypeName ¶ added in v0.25.0
func (*TestVectorIntObject) TypeName() string
TypeName returns name of type in TL schema.
func (*TestVectorIntObject) Zero ¶ added in v0.20.0
func (t *TestVectorIntObject) Zero() bool
type TestVectorString ¶
type TestVectorString struct { // Vector of strings Value []string }
TestVectorString represents TL type `testVectorString#5d6f85bc`.
See https://localhost:80/doc/constructor/testVectorString for reference.
func (*TestVectorString) Decode ¶
func (t *TestVectorString) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TestVectorString) DecodeBare ¶ added in v0.30.0
func (t *TestVectorString) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TestVectorString) Encode ¶
func (t *TestVectorString) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TestVectorString) EncodeBare ¶ added in v0.30.0
func (t *TestVectorString) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TestVectorString) FillFrom ¶ added in v0.25.0
func (t *TestVectorString) FillFrom(from interface { GetValue() (value []string) })
FillFrom fills TestVectorString from given interface.
func (*TestVectorString) GetValue ¶ added in v0.21.0
func (t *TestVectorString) GetValue() (value []string)
GetValue returns value of Value field.
func (*TestVectorString) String ¶ added in v0.12.0
func (t *TestVectorString) String() string
String implements fmt.Stringer.
func (*TestVectorString) TypeID ¶ added in v0.21.0
func (*TestVectorString) TypeID() uint32
TypeID returns type id in TL schema.
func (*TestVectorString) TypeInfo ¶ added in v0.25.0
func (t *TestVectorString) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TestVectorString) TypeName ¶ added in v0.25.0
func (*TestVectorString) TypeName() string
TypeName returns name of type in TL schema.
func (*TestVectorString) Zero ¶ added in v0.20.0
func (t *TestVectorString) Zero() bool
type TestVectorStringObject ¶
type TestVectorStringObject struct { // Vector of objects Value []TestString }
TestVectorStringObject represents TL type `testVectorStringObject#e5ecc0d`.
See https://localhost:80/doc/constructor/testVectorStringObject for reference.
func (*TestVectorStringObject) Decode ¶
func (t *TestVectorStringObject) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TestVectorStringObject) DecodeBare ¶ added in v0.30.0
func (t *TestVectorStringObject) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TestVectorStringObject) Encode ¶
func (t *TestVectorStringObject) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TestVectorStringObject) EncodeBare ¶ added in v0.30.0
func (t *TestVectorStringObject) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TestVectorStringObject) FillFrom ¶ added in v0.25.0
func (t *TestVectorStringObject) FillFrom(from interface { GetValue() (value []TestString) })
FillFrom fills TestVectorStringObject from given interface.
func (*TestVectorStringObject) GetValue ¶ added in v0.21.0
func (t *TestVectorStringObject) GetValue() (value []TestString)
GetValue returns value of Value field.
func (*TestVectorStringObject) String ¶ added in v0.12.0
func (t *TestVectorStringObject) String() string
String implements fmt.Stringer.
func (*TestVectorStringObject) TypeID ¶ added in v0.21.0
func (*TestVectorStringObject) TypeID() uint32
TypeID returns type id in TL schema.
func (*TestVectorStringObject) TypeInfo ¶ added in v0.25.0
func (t *TestVectorStringObject) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TestVectorStringObject) TypeName ¶ added in v0.25.0
func (*TestVectorStringObject) TypeName() string
TypeName returns name of type in TL schema.
func (*TestVectorStringObject) Zero ¶ added in v0.20.0
func (t *TestVectorStringObject) Zero() bool
type TestVectorVector ¶
type TestVectorVector struct { // Value field of TestVectorVector. Value [][]string }
TestVectorVector represents TL type `testVectorVector#69e8846c`.
See https://localhost:80/doc/constructor/testVectorVector for reference.
func (*TestVectorVector) Decode ¶
func (t *TestVectorVector) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TestVectorVector) DecodeBare ¶ added in v0.30.0
func (t *TestVectorVector) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TestVectorVector) Encode ¶
func (t *TestVectorVector) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TestVectorVector) EncodeBare ¶ added in v0.30.0
func (t *TestVectorVector) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TestVectorVector) FillFrom ¶ added in v0.25.0
func (t *TestVectorVector) FillFrom(from interface { GetValue() (value [][]string) })
FillFrom fills TestVectorVector from given interface.
func (*TestVectorVector) GetValue ¶ added in v0.21.0
func (t *TestVectorVector) GetValue() (value [][]string)
GetValue returns value of Value field.
func (*TestVectorVector) String ¶ added in v0.12.0
func (t *TestVectorVector) String() string
String implements fmt.Stringer.
func (*TestVectorVector) TypeID ¶ added in v0.21.0
func (*TestVectorVector) TypeID() uint32
TypeID returns type id in TL schema.
func (*TestVectorVector) TypeInfo ¶ added in v0.25.0
func (t *TestVectorVector) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TestVectorVector) TypeName ¶ added in v0.25.0
func (*TestVectorVector) TypeName() string
TypeName returns name of type in TL schema.
func (*TestVectorVector) Zero ¶ added in v0.20.0
func (t *TestVectorVector) Zero() bool
type TextEntities ¶
type TextEntities struct { // List of text entities Entities []TextEntity }
TextEntities represents TL type `textEntities#cf89c258`.
See https://localhost:80/doc/constructor/textEntities for reference.
func (*TextEntities) Decode ¶
func (t *TextEntities) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntities) DecodeBare ¶ added in v0.30.0
func (t *TextEntities) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntities) Encode ¶
func (t *TextEntities) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntities) EncodeBare ¶ added in v0.30.0
func (t *TextEntities) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntities) FillFrom ¶ added in v0.25.0
func (t *TextEntities) FillFrom(from interface { GetEntities() (value []TextEntity) })
FillFrom fills TextEntities from given interface.
func (*TextEntities) GetEntities ¶ added in v0.21.0
func (t *TextEntities) GetEntities() (value []TextEntity)
GetEntities returns value of Entities field.
func (*TextEntities) String ¶ added in v0.12.0
func (t *TextEntities) String() string
String implements fmt.Stringer.
func (*TextEntities) TypeID ¶ added in v0.21.0
func (*TextEntities) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntities) TypeInfo ¶ added in v0.25.0
func (t *TextEntities) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntities) TypeName ¶ added in v0.25.0
func (*TextEntities) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntities) Zero ¶ added in v0.20.0
func (t *TextEntities) Zero() bool
type TextEntity ¶
type TextEntity struct { // Offset of the entity, in UTF-16 code units Offset int32 // Length of the entity, in UTF-16 code units Length int32 // Type of the entity Type TextEntityTypeClass }
TextEntity represents TL type `textEntity#8bab99a8`.
See https://localhost:80/doc/constructor/textEntity for reference.
func (*TextEntity) Decode ¶
func (t *TextEntity) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntity) DecodeBare ¶ added in v0.30.0
func (t *TextEntity) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntity) Encode ¶
func (t *TextEntity) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntity) EncodeBare ¶ added in v0.30.0
func (t *TextEntity) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntity) FillFrom ¶ added in v0.25.0
func (t *TextEntity) FillFrom(from interface { GetOffset() (value int32) GetLength() (value int32) GetType() (value TextEntityTypeClass) })
FillFrom fills TextEntity from given interface.
func (*TextEntity) GetLength ¶ added in v0.21.0
func (t *TextEntity) GetLength() (value int32)
GetLength returns value of Length field.
func (*TextEntity) GetOffset ¶ added in v0.21.0
func (t *TextEntity) GetOffset() (value int32)
GetOffset returns value of Offset field.
func (*TextEntity) GetType ¶ added in v0.21.0
func (t *TextEntity) GetType() (value TextEntityTypeClass)
GetType returns value of Type field.
func (*TextEntity) String ¶ added in v0.12.0
func (t *TextEntity) String() string
String implements fmt.Stringer.
func (*TextEntity) TypeID ¶ added in v0.21.0
func (*TextEntity) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntity) TypeInfo ¶ added in v0.25.0
func (t *TextEntity) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntity) TypeName ¶ added in v0.25.0
func (*TextEntity) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntity) Zero ¶ added in v0.20.0
func (t *TextEntity) Zero() bool
type TextEntityTypeBankCardNumber ¶
type TextEntityTypeBankCardNumber struct { }
TextEntityTypeBankCardNumber represents TL type `textEntityTypeBankCardNumber#6513910`.
See https://localhost:80/doc/constructor/textEntityTypeBankCardNumber for reference.
func (*TextEntityTypeBankCardNumber) Decode ¶
func (t *TextEntityTypeBankCardNumber) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeBankCardNumber) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeBankCardNumber) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeBankCardNumber) Encode ¶
func (t *TextEntityTypeBankCardNumber) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeBankCardNumber) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeBankCardNumber) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeBankCardNumber) String ¶ added in v0.12.0
func (t *TextEntityTypeBankCardNumber) String() string
String implements fmt.Stringer.
func (*TextEntityTypeBankCardNumber) TypeID ¶ added in v0.21.0
func (*TextEntityTypeBankCardNumber) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeBankCardNumber) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypeBankCardNumber) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeBankCardNumber) TypeName ¶ added in v0.25.0
func (*TextEntityTypeBankCardNumber) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeBankCardNumber) Zero ¶ added in v0.20.0
func (t *TextEntityTypeBankCardNumber) Zero() bool
type TextEntityTypeBold ¶
type TextEntityTypeBold struct { }
TextEntityTypeBold represents TL type `textEntityTypeBold#bcc0e1b0`.
See https://localhost:80/doc/constructor/textEntityTypeBold for reference.
func (*TextEntityTypeBold) Decode ¶
func (t *TextEntityTypeBold) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeBold) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeBold) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeBold) Encode ¶
func (t *TextEntityTypeBold) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeBold) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeBold) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeBold) String ¶ added in v0.12.0
func (t *TextEntityTypeBold) String() string
String implements fmt.Stringer.
func (*TextEntityTypeBold) TypeID ¶ added in v0.21.0
func (*TextEntityTypeBold) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeBold) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypeBold) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeBold) TypeName ¶ added in v0.25.0
func (*TextEntityTypeBold) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeBold) Zero ¶ added in v0.20.0
func (t *TextEntityTypeBold) Zero() bool
type TextEntityTypeBotCommand ¶
type TextEntityTypeBotCommand struct { }
TextEntityTypeBotCommand represents TL type `textEntityTypeBotCommand#bb652bb3`.
See https://localhost:80/doc/constructor/textEntityTypeBotCommand for reference.
func (*TextEntityTypeBotCommand) Decode ¶
func (t *TextEntityTypeBotCommand) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeBotCommand) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeBotCommand) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeBotCommand) Encode ¶
func (t *TextEntityTypeBotCommand) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeBotCommand) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeBotCommand) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeBotCommand) String ¶ added in v0.12.0
func (t *TextEntityTypeBotCommand) String() string
String implements fmt.Stringer.
func (*TextEntityTypeBotCommand) TypeID ¶ added in v0.21.0
func (*TextEntityTypeBotCommand) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeBotCommand) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypeBotCommand) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeBotCommand) TypeName ¶ added in v0.25.0
func (*TextEntityTypeBotCommand) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeBotCommand) Zero ¶ added in v0.20.0
func (t *TextEntityTypeBotCommand) Zero() bool
type TextEntityTypeBox ¶
type TextEntityTypeBox struct {
TextEntityType TextEntityTypeClass
}
TextEntityType boxes the TextEntityTypeClass providing a helper.
type TextEntityTypeCashtag ¶
type TextEntityTypeCashtag struct { }
TextEntityTypeCashtag represents TL type `textEntityTypeCashtag#48e4374b`.
See https://localhost:80/doc/constructor/textEntityTypeCashtag for reference.
func (*TextEntityTypeCashtag) Decode ¶
func (t *TextEntityTypeCashtag) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeCashtag) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeCashtag) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeCashtag) Encode ¶
func (t *TextEntityTypeCashtag) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeCashtag) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeCashtag) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeCashtag) String ¶ added in v0.12.0
func (t *TextEntityTypeCashtag) String() string
String implements fmt.Stringer.
func (*TextEntityTypeCashtag) TypeID ¶ added in v0.21.0
func (*TextEntityTypeCashtag) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeCashtag) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypeCashtag) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeCashtag) TypeName ¶ added in v0.25.0
func (*TextEntityTypeCashtag) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeCashtag) Zero ¶ added in v0.20.0
func (t *TextEntityTypeCashtag) Zero() bool
type TextEntityTypeClass ¶
type TextEntityTypeClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // contains filtered or unexported methods }
TextEntityTypeClass represents TextEntityType generic type.
See https://localhost:80/doc/type/TextEntityType for reference.
Example:
g, err := td.DecodeTextEntityType(buf) if err != nil { panic(err) } switch v := g.(type) { case *td.TextEntityTypeMention: // textEntityTypeMention#37b3df65 case *td.TextEntityTypeHashtag: // textEntityTypeHashtag#c2f7a2dd case *td.TextEntityTypeCashtag: // textEntityTypeCashtag#48e4374b case *td.TextEntityTypeBotCommand: // textEntityTypeBotCommand#bb652bb3 case *td.TextEntityTypeURL: // textEntityTypeUrl#b1c0d47c case *td.TextEntityTypeEmailAddress: // textEntityTypeEmailAddress#54f81821 case *td.TextEntityTypePhoneNumber: // textEntityTypePhoneNumber#bad9aa2a case *td.TextEntityTypeBankCardNumber: // textEntityTypeBankCardNumber#6513910 case *td.TextEntityTypeBold: // textEntityTypeBold#bcc0e1b0 case *td.TextEntityTypeItalic: // textEntityTypeItalic#f8f3965d case *td.TextEntityTypeUnderline: // textEntityTypeUnderline#2f39cf92 case *td.TextEntityTypeStrikethrough: // textEntityTypeStrikethrough#394fc4fa case *td.TextEntityTypeCode: // textEntityTypeCode#c5e9c94a case *td.TextEntityTypePre: // textEntityTypePre#62491c8e case *td.TextEntityTypePreCode: // textEntityTypePreCode#c7a77aab case *td.TextEntityTypeTextURL: // textEntityTypeTextUrl#1a912463 case *td.TextEntityTypeMentionName: // textEntityTypeMentionName#d0d2685d default: panic(v) }
func DecodeTextEntityType ¶
func DecodeTextEntityType(buf *bin.Buffer) (TextEntityTypeClass, error)
DecodeTextEntityType implements binary de-serialization for TextEntityTypeClass.
type TextEntityTypeClassArray ¶ added in v0.25.0
type TextEntityTypeClassArray []TextEntityTypeClass
TextEntityTypeClassArray is adapter for slice of TextEntityTypeClass.
func (TextEntityTypeClassArray) AsTextEntityTypeMentionName ¶ added in v0.25.0
func (s TextEntityTypeClassArray) AsTextEntityTypeMentionName() (to TextEntityTypeMentionNameArray)
AsTextEntityTypeMentionName returns copy with only TextEntityTypeMentionName constructors.
func (TextEntityTypeClassArray) AsTextEntityTypePreCode ¶ added in v0.25.0
func (s TextEntityTypeClassArray) AsTextEntityTypePreCode() (to TextEntityTypePreCodeArray)
AsTextEntityTypePreCode returns copy with only TextEntityTypePreCode constructors.
func (TextEntityTypeClassArray) AsTextEntityTypeTextURL ¶ added in v0.26.0
func (s TextEntityTypeClassArray) AsTextEntityTypeTextURL() (to TextEntityTypeTextURLArray)
AsTextEntityTypeTextURL returns copy with only TextEntityTypeTextURL constructors.
func (TextEntityTypeClassArray) First ¶ added in v0.25.0
func (s TextEntityTypeClassArray) First() (v TextEntityTypeClass, ok bool)
First returns first element of slice (if exists).
func (TextEntityTypeClassArray) Last ¶ added in v0.25.0
func (s TextEntityTypeClassArray) Last() (v TextEntityTypeClass, ok bool)
Last returns last element of slice (if exists).
func (*TextEntityTypeClassArray) Pop ¶ added in v0.25.0
func (s *TextEntityTypeClassArray) Pop() (v TextEntityTypeClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*TextEntityTypeClassArray) PopFirst ¶ added in v0.25.0
func (s *TextEntityTypeClassArray) PopFirst() (v TextEntityTypeClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (TextEntityTypeClassArray) Retain ¶ added in v0.25.0
func (s TextEntityTypeClassArray) Retain(keep func(x TextEntityTypeClass) bool) TextEntityTypeClassArray
Retain filters in-place slice of TextEntityTypeClass.
func (TextEntityTypeClassArray) Sort ¶ added in v0.25.0
func (s TextEntityTypeClassArray) Sort(less func(a, b TextEntityTypeClass) bool) TextEntityTypeClassArray
Sort sorts slice of TextEntityTypeClass.
func (TextEntityTypeClassArray) SortStable ¶ added in v0.25.0
func (s TextEntityTypeClassArray) SortStable(less func(a, b TextEntityTypeClass) bool) TextEntityTypeClassArray
SortStable sorts slice of TextEntityTypeClass.
type TextEntityTypeCode ¶
type TextEntityTypeCode struct { }
TextEntityTypeCode represents TL type `textEntityTypeCode#c5e9c94a`.
See https://localhost:80/doc/constructor/textEntityTypeCode for reference.
func (*TextEntityTypeCode) Decode ¶
func (t *TextEntityTypeCode) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeCode) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeCode) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeCode) Encode ¶
func (t *TextEntityTypeCode) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeCode) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeCode) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeCode) String ¶ added in v0.12.0
func (t *TextEntityTypeCode) String() string
String implements fmt.Stringer.
func (*TextEntityTypeCode) TypeID ¶ added in v0.21.0
func (*TextEntityTypeCode) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeCode) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypeCode) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeCode) TypeName ¶ added in v0.25.0
func (*TextEntityTypeCode) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeCode) Zero ¶ added in v0.20.0
func (t *TextEntityTypeCode) Zero() bool
type TextEntityTypeEmailAddress ¶
type TextEntityTypeEmailAddress struct { }
TextEntityTypeEmailAddress represents TL type `textEntityTypeEmailAddress#54f81821`.
See https://localhost:80/doc/constructor/textEntityTypeEmailAddress for reference.
func (*TextEntityTypeEmailAddress) Decode ¶
func (t *TextEntityTypeEmailAddress) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeEmailAddress) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeEmailAddress) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeEmailAddress) Encode ¶
func (t *TextEntityTypeEmailAddress) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeEmailAddress) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeEmailAddress) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeEmailAddress) String ¶ added in v0.12.0
func (t *TextEntityTypeEmailAddress) String() string
String implements fmt.Stringer.
func (*TextEntityTypeEmailAddress) TypeID ¶ added in v0.21.0
func (*TextEntityTypeEmailAddress) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeEmailAddress) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypeEmailAddress) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeEmailAddress) TypeName ¶ added in v0.25.0
func (*TextEntityTypeEmailAddress) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeEmailAddress) Zero ¶ added in v0.20.0
func (t *TextEntityTypeEmailAddress) Zero() bool
type TextEntityTypeHashtag ¶
type TextEntityTypeHashtag struct { }
TextEntityTypeHashtag represents TL type `textEntityTypeHashtag#c2f7a2dd`.
See https://localhost:80/doc/constructor/textEntityTypeHashtag for reference.
func (*TextEntityTypeHashtag) Decode ¶
func (t *TextEntityTypeHashtag) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeHashtag) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeHashtag) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeHashtag) Encode ¶
func (t *TextEntityTypeHashtag) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeHashtag) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeHashtag) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeHashtag) String ¶ added in v0.12.0
func (t *TextEntityTypeHashtag) String() string
String implements fmt.Stringer.
func (*TextEntityTypeHashtag) TypeID ¶ added in v0.21.0
func (*TextEntityTypeHashtag) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeHashtag) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypeHashtag) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeHashtag) TypeName ¶ added in v0.25.0
func (*TextEntityTypeHashtag) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeHashtag) Zero ¶ added in v0.20.0
func (t *TextEntityTypeHashtag) Zero() bool
type TextEntityTypeItalic ¶
type TextEntityTypeItalic struct { }
TextEntityTypeItalic represents TL type `textEntityTypeItalic#f8f3965d`.
See https://localhost:80/doc/constructor/textEntityTypeItalic for reference.
func (*TextEntityTypeItalic) Decode ¶
func (t *TextEntityTypeItalic) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeItalic) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeItalic) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeItalic) Encode ¶
func (t *TextEntityTypeItalic) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeItalic) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeItalic) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeItalic) String ¶ added in v0.12.0
func (t *TextEntityTypeItalic) String() string
String implements fmt.Stringer.
func (*TextEntityTypeItalic) TypeID ¶ added in v0.21.0
func (*TextEntityTypeItalic) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeItalic) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypeItalic) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeItalic) TypeName ¶ added in v0.25.0
func (*TextEntityTypeItalic) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeItalic) Zero ¶ added in v0.20.0
func (t *TextEntityTypeItalic) Zero() bool
type TextEntityTypeMention ¶
type TextEntityTypeMention struct { }
TextEntityTypeMention represents TL type `textEntityTypeMention#37b3df65`.
See https://localhost:80/doc/constructor/textEntityTypeMention for reference.
func (*TextEntityTypeMention) Decode ¶
func (t *TextEntityTypeMention) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeMention) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeMention) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeMention) Encode ¶
func (t *TextEntityTypeMention) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeMention) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeMention) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeMention) String ¶ added in v0.12.0
func (t *TextEntityTypeMention) String() string
String implements fmt.Stringer.
func (*TextEntityTypeMention) TypeID ¶ added in v0.21.0
func (*TextEntityTypeMention) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeMention) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypeMention) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeMention) TypeName ¶ added in v0.25.0
func (*TextEntityTypeMention) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeMention) Zero ¶ added in v0.20.0
func (t *TextEntityTypeMention) Zero() bool
type TextEntityTypeMentionName ¶
type TextEntityTypeMentionName struct { // Identifier of the mentioned user UserID int32 }
TextEntityTypeMentionName represents TL type `textEntityTypeMentionName#d0d2685d`.
See https://localhost:80/doc/constructor/textEntityTypeMentionName for reference.
func (*TextEntityTypeMentionName) Decode ¶
func (t *TextEntityTypeMentionName) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeMentionName) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeMentionName) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeMentionName) Encode ¶
func (t *TextEntityTypeMentionName) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeMentionName) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeMentionName) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeMentionName) FillFrom ¶ added in v0.25.0
func (t *TextEntityTypeMentionName) FillFrom(from interface { GetUserID() (value int32) })
FillFrom fills TextEntityTypeMentionName from given interface.
func (*TextEntityTypeMentionName) GetUserID ¶ added in v0.21.0
func (t *TextEntityTypeMentionName) GetUserID() (value int32)
GetUserID returns value of UserID field.
func (*TextEntityTypeMentionName) String ¶ added in v0.12.0
func (t *TextEntityTypeMentionName) String() string
String implements fmt.Stringer.
func (*TextEntityTypeMentionName) TypeID ¶ added in v0.21.0
func (*TextEntityTypeMentionName) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeMentionName) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypeMentionName) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeMentionName) TypeName ¶ added in v0.25.0
func (*TextEntityTypeMentionName) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeMentionName) Zero ¶ added in v0.20.0
func (t *TextEntityTypeMentionName) Zero() bool
type TextEntityTypeMentionNameArray ¶ added in v0.25.0
type TextEntityTypeMentionNameArray []TextEntityTypeMentionName
TextEntityTypeMentionNameArray is adapter for slice of TextEntityTypeMentionName.
func (TextEntityTypeMentionNameArray) First ¶ added in v0.25.0
func (s TextEntityTypeMentionNameArray) First() (v TextEntityTypeMentionName, ok bool)
First returns first element of slice (if exists).
func (TextEntityTypeMentionNameArray) Last ¶ added in v0.25.0
func (s TextEntityTypeMentionNameArray) Last() (v TextEntityTypeMentionName, ok bool)
Last returns last element of slice (if exists).
func (*TextEntityTypeMentionNameArray) Pop ¶ added in v0.25.0
func (s *TextEntityTypeMentionNameArray) Pop() (v TextEntityTypeMentionName, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*TextEntityTypeMentionNameArray) PopFirst ¶ added in v0.25.0
func (s *TextEntityTypeMentionNameArray) PopFirst() (v TextEntityTypeMentionName, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (TextEntityTypeMentionNameArray) Retain ¶ added in v0.25.0
func (s TextEntityTypeMentionNameArray) Retain(keep func(x TextEntityTypeMentionName) bool) TextEntityTypeMentionNameArray
Retain filters in-place slice of TextEntityTypeMentionName.
func (TextEntityTypeMentionNameArray) Sort ¶ added in v0.25.0
func (s TextEntityTypeMentionNameArray) Sort(less func(a, b TextEntityTypeMentionName) bool) TextEntityTypeMentionNameArray
Sort sorts slice of TextEntityTypeMentionName.
func (TextEntityTypeMentionNameArray) SortStable ¶ added in v0.25.0
func (s TextEntityTypeMentionNameArray) SortStable(less func(a, b TextEntityTypeMentionName) bool) TextEntityTypeMentionNameArray
SortStable sorts slice of TextEntityTypeMentionName.
type TextEntityTypePhoneNumber ¶
type TextEntityTypePhoneNumber struct { }
TextEntityTypePhoneNumber represents TL type `textEntityTypePhoneNumber#bad9aa2a`.
See https://localhost:80/doc/constructor/textEntityTypePhoneNumber for reference.
func (*TextEntityTypePhoneNumber) Decode ¶
func (t *TextEntityTypePhoneNumber) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypePhoneNumber) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypePhoneNumber) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypePhoneNumber) Encode ¶
func (t *TextEntityTypePhoneNumber) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypePhoneNumber) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypePhoneNumber) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypePhoneNumber) String ¶ added in v0.12.0
func (t *TextEntityTypePhoneNumber) String() string
String implements fmt.Stringer.
func (*TextEntityTypePhoneNumber) TypeID ¶ added in v0.21.0
func (*TextEntityTypePhoneNumber) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypePhoneNumber) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypePhoneNumber) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypePhoneNumber) TypeName ¶ added in v0.25.0
func (*TextEntityTypePhoneNumber) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypePhoneNumber) Zero ¶ added in v0.20.0
func (t *TextEntityTypePhoneNumber) Zero() bool
type TextEntityTypePre ¶
type TextEntityTypePre struct { }
TextEntityTypePre represents TL type `textEntityTypePre#62491c8e`.
See https://localhost:80/doc/constructor/textEntityTypePre for reference.
func (*TextEntityTypePre) Decode ¶
func (t *TextEntityTypePre) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypePre) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypePre) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypePre) Encode ¶
func (t *TextEntityTypePre) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypePre) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypePre) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypePre) String ¶ added in v0.12.0
func (t *TextEntityTypePre) String() string
String implements fmt.Stringer.
func (*TextEntityTypePre) TypeID ¶ added in v0.21.0
func (*TextEntityTypePre) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypePre) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypePre) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypePre) TypeName ¶ added in v0.25.0
func (*TextEntityTypePre) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypePre) Zero ¶ added in v0.20.0
func (t *TextEntityTypePre) Zero() bool
type TextEntityTypePreCode ¶
type TextEntityTypePreCode struct { // Programming language of the code; as defined by the sender Language string }
TextEntityTypePreCode represents TL type `textEntityTypePreCode#c7a77aab`.
See https://localhost:80/doc/constructor/textEntityTypePreCode for reference.
func (*TextEntityTypePreCode) Decode ¶
func (t *TextEntityTypePreCode) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypePreCode) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypePreCode) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypePreCode) Encode ¶
func (t *TextEntityTypePreCode) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypePreCode) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypePreCode) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypePreCode) FillFrom ¶ added in v0.25.0
func (t *TextEntityTypePreCode) FillFrom(from interface { GetLanguage() (value string) })
FillFrom fills TextEntityTypePreCode from given interface.
func (*TextEntityTypePreCode) GetLanguage ¶ added in v0.21.0
func (t *TextEntityTypePreCode) GetLanguage() (value string)
GetLanguage returns value of Language field.
func (*TextEntityTypePreCode) String ¶ added in v0.12.0
func (t *TextEntityTypePreCode) String() string
String implements fmt.Stringer.
func (*TextEntityTypePreCode) TypeID ¶ added in v0.21.0
func (*TextEntityTypePreCode) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypePreCode) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypePreCode) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypePreCode) TypeName ¶ added in v0.25.0
func (*TextEntityTypePreCode) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypePreCode) Zero ¶ added in v0.20.0
func (t *TextEntityTypePreCode) Zero() bool
type TextEntityTypePreCodeArray ¶ added in v0.25.0
type TextEntityTypePreCodeArray []TextEntityTypePreCode
TextEntityTypePreCodeArray is adapter for slice of TextEntityTypePreCode.
func (TextEntityTypePreCodeArray) First ¶ added in v0.25.0
func (s TextEntityTypePreCodeArray) First() (v TextEntityTypePreCode, ok bool)
First returns first element of slice (if exists).
func (TextEntityTypePreCodeArray) Last ¶ added in v0.25.0
func (s TextEntityTypePreCodeArray) Last() (v TextEntityTypePreCode, ok bool)
Last returns last element of slice (if exists).
func (*TextEntityTypePreCodeArray) Pop ¶ added in v0.25.0
func (s *TextEntityTypePreCodeArray) Pop() (v TextEntityTypePreCode, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*TextEntityTypePreCodeArray) PopFirst ¶ added in v0.25.0
func (s *TextEntityTypePreCodeArray) PopFirst() (v TextEntityTypePreCode, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (TextEntityTypePreCodeArray) Retain ¶ added in v0.25.0
func (s TextEntityTypePreCodeArray) Retain(keep func(x TextEntityTypePreCode) bool) TextEntityTypePreCodeArray
Retain filters in-place slice of TextEntityTypePreCode.
func (TextEntityTypePreCodeArray) Sort ¶ added in v0.25.0
func (s TextEntityTypePreCodeArray) Sort(less func(a, b TextEntityTypePreCode) bool) TextEntityTypePreCodeArray
Sort sorts slice of TextEntityTypePreCode.
func (TextEntityTypePreCodeArray) SortStable ¶ added in v0.25.0
func (s TextEntityTypePreCodeArray) SortStable(less func(a, b TextEntityTypePreCode) bool) TextEntityTypePreCodeArray
SortStable sorts slice of TextEntityTypePreCode.
type TextEntityTypeStrikethrough ¶
type TextEntityTypeStrikethrough struct { }
TextEntityTypeStrikethrough represents TL type `textEntityTypeStrikethrough#394fc4fa`.
See https://localhost:80/doc/constructor/textEntityTypeStrikethrough for reference.
func (*TextEntityTypeStrikethrough) Decode ¶
func (t *TextEntityTypeStrikethrough) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeStrikethrough) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeStrikethrough) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeStrikethrough) Encode ¶
func (t *TextEntityTypeStrikethrough) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeStrikethrough) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeStrikethrough) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeStrikethrough) String ¶ added in v0.12.0
func (t *TextEntityTypeStrikethrough) String() string
String implements fmt.Stringer.
func (*TextEntityTypeStrikethrough) TypeID ¶ added in v0.21.0
func (*TextEntityTypeStrikethrough) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeStrikethrough) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypeStrikethrough) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeStrikethrough) TypeName ¶ added in v0.25.0
func (*TextEntityTypeStrikethrough) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeStrikethrough) Zero ¶ added in v0.20.0
func (t *TextEntityTypeStrikethrough) Zero() bool
type TextEntityTypeTextURL ¶ added in v0.26.0
type TextEntityTypeTextURL struct { // HTTP or tg:// URL to be opened when the link is clicked URL string }
TextEntityTypeTextURL represents TL type `textEntityTypeTextUrl#1a912463`.
See https://localhost:80/doc/constructor/textEntityTypeTextUrl for reference.
func (*TextEntityTypeTextURL) Decode ¶ added in v0.26.0
func (t *TextEntityTypeTextURL) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeTextURL) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeTextURL) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeTextURL) Encode ¶ added in v0.26.0
func (t *TextEntityTypeTextURL) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeTextURL) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeTextURL) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeTextURL) FillFrom ¶ added in v0.26.0
func (t *TextEntityTypeTextURL) FillFrom(from interface { GetURL() (value string) })
FillFrom fills TextEntityTypeTextURL from given interface.
func (*TextEntityTypeTextURL) GetURL ¶ added in v0.26.0
func (t *TextEntityTypeTextURL) GetURL() (value string)
GetURL returns value of URL field.
func (*TextEntityTypeTextURL) String ¶ added in v0.26.0
func (t *TextEntityTypeTextURL) String() string
String implements fmt.Stringer.
func (*TextEntityTypeTextURL) TypeID ¶ added in v0.26.0
func (*TextEntityTypeTextURL) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeTextURL) TypeInfo ¶ added in v0.26.0
func (t *TextEntityTypeTextURL) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeTextURL) TypeName ¶ added in v0.26.0
func (*TextEntityTypeTextURL) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeTextURL) Zero ¶ added in v0.26.0
func (t *TextEntityTypeTextURL) Zero() bool
type TextEntityTypeTextURLArray ¶ added in v0.26.0
type TextEntityTypeTextURLArray []TextEntityTypeTextURL
TextEntityTypeTextURLArray is adapter for slice of TextEntityTypeTextURL.
func (TextEntityTypeTextURLArray) First ¶ added in v0.26.0
func (s TextEntityTypeTextURLArray) First() (v TextEntityTypeTextURL, ok bool)
First returns first element of slice (if exists).
func (TextEntityTypeTextURLArray) Last ¶ added in v0.26.0
func (s TextEntityTypeTextURLArray) Last() (v TextEntityTypeTextURL, ok bool)
Last returns last element of slice (if exists).
func (*TextEntityTypeTextURLArray) Pop ¶ added in v0.26.0
func (s *TextEntityTypeTextURLArray) Pop() (v TextEntityTypeTextURL, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*TextEntityTypeTextURLArray) PopFirst ¶ added in v0.26.0
func (s *TextEntityTypeTextURLArray) PopFirst() (v TextEntityTypeTextURL, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (TextEntityTypeTextURLArray) Retain ¶ added in v0.26.0
func (s TextEntityTypeTextURLArray) Retain(keep func(x TextEntityTypeTextURL) bool) TextEntityTypeTextURLArray
Retain filters in-place slice of TextEntityTypeTextURL.
func (TextEntityTypeTextURLArray) Sort ¶ added in v0.26.0
func (s TextEntityTypeTextURLArray) Sort(less func(a, b TextEntityTypeTextURL) bool) TextEntityTypeTextURLArray
Sort sorts slice of TextEntityTypeTextURL.
func (TextEntityTypeTextURLArray) SortStable ¶ added in v0.26.0
func (s TextEntityTypeTextURLArray) SortStable(less func(a, b TextEntityTypeTextURL) bool) TextEntityTypeTextURLArray
SortStable sorts slice of TextEntityTypeTextURL.
type TextEntityTypeURL ¶ added in v0.26.0
type TextEntityTypeURL struct { }
TextEntityTypeURL represents TL type `textEntityTypeUrl#b1c0d47c`.
See https://localhost:80/doc/constructor/textEntityTypeUrl for reference.
func (*TextEntityTypeURL) Decode ¶ added in v0.26.0
func (t *TextEntityTypeURL) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeURL) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeURL) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeURL) Encode ¶ added in v0.26.0
func (t *TextEntityTypeURL) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeURL) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeURL) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeURL) String ¶ added in v0.26.0
func (t *TextEntityTypeURL) String() string
String implements fmt.Stringer.
func (*TextEntityTypeURL) TypeID ¶ added in v0.26.0
func (*TextEntityTypeURL) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeURL) TypeInfo ¶ added in v0.26.0
func (t *TextEntityTypeURL) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeURL) TypeName ¶ added in v0.26.0
func (*TextEntityTypeURL) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeURL) Zero ¶ added in v0.26.0
func (t *TextEntityTypeURL) Zero() bool
type TextEntityTypeUnderline ¶
type TextEntityTypeUnderline struct { }
TextEntityTypeUnderline represents TL type `textEntityTypeUnderline#2f39cf92`.
See https://localhost:80/doc/constructor/textEntityTypeUnderline for reference.
func (*TextEntityTypeUnderline) Decode ¶
func (t *TextEntityTypeUnderline) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TextEntityTypeUnderline) DecodeBare ¶ added in v0.30.0
func (t *TextEntityTypeUnderline) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TextEntityTypeUnderline) Encode ¶
func (t *TextEntityTypeUnderline) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TextEntityTypeUnderline) EncodeBare ¶ added in v0.30.0
func (t *TextEntityTypeUnderline) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TextEntityTypeUnderline) String ¶ added in v0.12.0
func (t *TextEntityTypeUnderline) String() string
String implements fmt.Stringer.
func (*TextEntityTypeUnderline) TypeID ¶ added in v0.21.0
func (*TextEntityTypeUnderline) TypeID() uint32
TypeID returns type id in TL schema.
func (*TextEntityTypeUnderline) TypeInfo ¶ added in v0.25.0
func (t *TextEntityTypeUnderline) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TextEntityTypeUnderline) TypeName ¶ added in v0.25.0
func (*TextEntityTypeUnderline) TypeName() string
TypeName returns name of type in TL schema.
func (*TextEntityTypeUnderline) Zero ¶ added in v0.20.0
func (t *TextEntityTypeUnderline) Zero() bool
type Theme ¶
type Theme struct { // Name field of Theme. Name string }
Theme represents TL type `theme#28f1114`.
See https://localhost:80/doc/constructor/theme for reference.
func (*Theme) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*Theme) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type True ¶
type True struct { }
True represents TL type `true#997275b5`.
See https://localhost:80/doc/constructor/true for reference.
func (*True) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*True) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type Update ¶
type Update struct { // Msg field of Update. Msg AbstractMessageClass // Delay field of Update. Delay int32 }
Update represents TL type `update#b03e2ef8`.
See https://localhost:80/doc/constructor/update for reference.
func (*Update) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*Update) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
func (*Update) FillFrom ¶ added in v0.25.0
func (u *Update) FillFrom(from interface { GetMsg() (value AbstractMessageClass) GetDelay() (value int32) })
FillFrom fills Update from given interface.
func (*Update) GetMsg ¶ added in v0.21.0
func (u *Update) GetMsg() (value AbstractMessageClass)
GetMsg returns value of Msg field.
type UserAuth ¶
type UserAuth struct { // Foo field of UserAuth. Foo string }
UserAuth represents TL type `user.auth#f4815592`.
See https://localhost:80/doc/constructor/user.auth for reference.
func (*UserAuth) DecodeBare ¶ added in v0.30.0
DecodeBare implements bin.BareDecoder.
func (*UserAuth) EncodeBare ¶ added in v0.30.0
EncodeBare implements bin.BareEncoder.
type UserAuthArray ¶ added in v0.25.0
type UserAuthArray []UserAuth
UserAuthArray is adapter for slice of UserAuth.
func (UserAuthArray) First ¶ added in v0.25.0
func (s UserAuthArray) First() (v UserAuth, ok bool)
First returns first element of slice (if exists).
func (UserAuthArray) Last ¶ added in v0.25.0
func (s UserAuthArray) Last() (v UserAuth, ok bool)
Last returns last element of slice (if exists).
func (*UserAuthArray) Pop ¶ added in v0.25.0
func (s *UserAuthArray) Pop() (v UserAuth, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*UserAuthArray) PopFirst ¶ added in v0.25.0
func (s *UserAuthArray) PopFirst() (v UserAuth, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (UserAuthArray) Retain ¶ added in v0.25.0
func (s UserAuthArray) Retain(keep func(x UserAuth) bool) UserAuthArray
Retain filters in-place slice of UserAuth.
func (UserAuthArray) Sort ¶ added in v0.25.0
func (s UserAuthArray) Sort(less func(a, b UserAuth) bool) UserAuthArray
Sort sorts slice of UserAuth.
func (UserAuthArray) SortStable ¶ added in v0.25.0
func (s UserAuthArray) SortStable(less func(a, b UserAuth) bool) UserAuthArray
SortStable sorts slice of UserAuth.
type UserAuthBox ¶
type UserAuthBox struct {
Auth UserAuthClass
}
UserAuth boxes the UserAuthClass providing a helper.
type UserAuthClass ¶
type UserAuthClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // contains filtered or unexported methods }
UserAuthClass represents user.Auth generic type.
See https://localhost:80/doc/type/user.Auth for reference.
Example:
g, err := td.DecodeUserAuth(buf) if err != nil { panic(err) } switch v := g.(type) { case *td.UserAuth: // user.auth#f4815592 case *td.UserAuthPassword: // user.authPassword#5981e317 default: panic(v) }
func DecodeUserAuth ¶
func DecodeUserAuth(buf *bin.Buffer) (UserAuthClass, error)
DecodeUserAuth implements binary de-serialization for UserAuthClass.
type UserAuthClassArray ¶ added in v0.25.0
type UserAuthClassArray []UserAuthClass
UserAuthClassArray is adapter for slice of UserAuthClass.
func (UserAuthClassArray) AsUserAuth ¶ added in v0.25.0
func (s UserAuthClassArray) AsUserAuth() (to UserAuthArray)
AsUserAuth returns copy with only UserAuth constructors.
func (UserAuthClassArray) AsUserAuthPassword ¶ added in v0.25.0
func (s UserAuthClassArray) AsUserAuthPassword() (to UserAuthPasswordArray)
AsUserAuthPassword returns copy with only UserAuthPassword constructors.
func (UserAuthClassArray) First ¶ added in v0.25.0
func (s UserAuthClassArray) First() (v UserAuthClass, ok bool)
First returns first element of slice (if exists).
func (UserAuthClassArray) Last ¶ added in v0.25.0
func (s UserAuthClassArray) Last() (v UserAuthClass, ok bool)
Last returns last element of slice (if exists).
func (*UserAuthClassArray) Pop ¶ added in v0.25.0
func (s *UserAuthClassArray) Pop() (v UserAuthClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*UserAuthClassArray) PopFirst ¶ added in v0.25.0
func (s *UserAuthClassArray) PopFirst() (v UserAuthClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (UserAuthClassArray) Retain ¶ added in v0.25.0
func (s UserAuthClassArray) Retain(keep func(x UserAuthClass) bool) UserAuthClassArray
Retain filters in-place slice of UserAuthClass.
func (UserAuthClassArray) Sort ¶ added in v0.25.0
func (s UserAuthClassArray) Sort(less func(a, b UserAuthClass) bool) UserAuthClassArray
Sort sorts slice of UserAuthClass.
func (UserAuthClassArray) SortStable ¶ added in v0.25.0
func (s UserAuthClassArray) SortStable(less func(a, b UserAuthClass) bool) UserAuthClassArray
SortStable sorts slice of UserAuthClass.
type UserAuthPassword ¶
type UserAuthPassword struct { // Pwd field of UserAuthPassword. Pwd string }
UserAuthPassword represents TL type `user.authPassword#5981e317`.
See https://localhost:80/doc/constructor/user.authPassword for reference.
func (*UserAuthPassword) Decode ¶
func (a *UserAuthPassword) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*UserAuthPassword) DecodeBare ¶ added in v0.30.0
func (a *UserAuthPassword) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*UserAuthPassword) Encode ¶
func (a *UserAuthPassword) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*UserAuthPassword) EncodeBare ¶ added in v0.30.0
func (a *UserAuthPassword) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*UserAuthPassword) FillFrom ¶ added in v0.25.0
func (a *UserAuthPassword) FillFrom(from interface { GetPwd() (value string) })
FillFrom fills UserAuthPassword from given interface.
func (*UserAuthPassword) GetPwd ¶ added in v0.21.0
func (a *UserAuthPassword) GetPwd() (value string)
GetPwd returns value of Pwd field.
func (*UserAuthPassword) String ¶ added in v0.12.0
func (a *UserAuthPassword) String() string
String implements fmt.Stringer.
func (*UserAuthPassword) TypeID ¶ added in v0.21.0
func (*UserAuthPassword) TypeID() uint32
TypeID returns type id in TL schema.
func (*UserAuthPassword) TypeInfo ¶ added in v0.25.0
func (a *UserAuthPassword) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*UserAuthPassword) TypeName ¶ added in v0.25.0
func (*UserAuthPassword) TypeName() string
TypeName returns name of type in TL schema.
func (*UserAuthPassword) Zero ¶ added in v0.20.0
func (a *UserAuthPassword) Zero() bool
type UserAuthPasswordArray ¶ added in v0.25.0
type UserAuthPasswordArray []UserAuthPassword
UserAuthPasswordArray is adapter for slice of UserAuthPassword.
func (UserAuthPasswordArray) First ¶ added in v0.25.0
func (s UserAuthPasswordArray) First() (v UserAuthPassword, ok bool)
First returns first element of slice (if exists).
func (UserAuthPasswordArray) Last ¶ added in v0.25.0
func (s UserAuthPasswordArray) Last() (v UserAuthPassword, ok bool)
Last returns last element of slice (if exists).
func (*UserAuthPasswordArray) Pop ¶ added in v0.25.0
func (s *UserAuthPasswordArray) Pop() (v UserAuthPassword, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*UserAuthPasswordArray) PopFirst ¶ added in v0.25.0
func (s *UserAuthPasswordArray) PopFirst() (v UserAuthPassword, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (UserAuthPasswordArray) Retain ¶ added in v0.25.0
func (s UserAuthPasswordArray) Retain(keep func(x UserAuthPassword) bool) UserAuthPasswordArray
Retain filters in-place slice of UserAuthPassword.
func (UserAuthPasswordArray) Sort ¶ added in v0.25.0
func (s UserAuthPasswordArray) Sort(less func(a, b UserAuthPassword) bool) UserAuthPasswordArray
Sort sorts slice of UserAuthPassword.
func (UserAuthPasswordArray) SortStable ¶ added in v0.25.0
func (s UserAuthPasswordArray) SortStable(less func(a, b UserAuthPassword) bool) UserAuthPasswordArray
SortStable sorts slice of UserAuthPassword.
Source Files ¶
- example.go
- tl_abstract_message_gen.go
- tl_account_themes_gen.go
- tl_auth_gen.go
- tl_bool_gen.go
- tl_bytes_gen.go
- tl_client_d_h_inner_data_gen.go
- tl_client_gen.go
- tl_config_gen.go
- tl_dc_option_gen.go
- tl_do_auth_gen.go
- tl_echo_vector_gen.go
- tl_error_gen.go
- tl_get_updates_resp_gen.go
- tl_int32_gen.go
- tl_int_vector_gen.go
- tl_invoke_with_layer_gen.go
- tl_message_gen.go
- tl_ok_gen.go
- tl_ping_gen.go
- tl_registry_gen.go
- tl_response_gen.go
- tl_send_gen.go
- tl_send_multiple_sms_gen.go
- tl_sms_gen.go
- tl_string_gen.go
- tl_test_bytes_gen.go
- tl_test_int_gen.go
- tl_test_string_gen.go
- tl_test_vector_bytes_gen.go
- tl_test_vector_int_gen.go
- tl_test_vector_int_object_gen.go
- tl_test_vector_string_gen.go
- tl_test_vector_string_object_gen.go
- tl_test_vector_vector_gen.go
- tl_text_entities_gen.go
- tl_text_entity_gen.go
- tl_text_entity_type_gen.go
- tl_theme_gen.go
- tl_update_gen.go
- tl_user_auth_gen.go