Versions in this module Expand all Collapse all v0 v0.3.0 Dec 27, 2025 Changes in this version + type CallbacksMap struct + func NewCallbacksMap() *CallbacksMap + func (c *CallbacksMap) Close() + func (c *CallbacksMap) Delete(key string) + func (c *CallbacksMap) Get(key string) (UploadCallback, bool) + func (c *CallbacksMap) Len() int + func (c *CallbacksMap) Set(key string, value UploadCallback, ttl time.Duration) *CallbacksMap + type Context interface + APIType func() uint + APIVersion func() uint + CheckUpdate func() bool + CookieJar func() http.CookieJar + ExtraVer func() *ExtraVer + GetImageMetadata func(path string) (model.AttachmentMetadata, string, error) + GetZpwService func(service string) []string + IMEI func() string + IsLogging func() bool + Language func() string + LogLevel func() uint8 + LoginInfo func() *LoginInfo + Options func() OptionsSnapshot + SecretKey func() SecretKey + Settings func() *Settings + UID func() string + UploadCallback func() *CallbacksMap + UserAgent func() string + WSPingInterval func() time.Duration + ZPWServiceMap func() *ZpwServiceMap + ZPWWebsocket func() []string + type ExtraVer struct + Alias string + BlockFriend string + ConvLabel string + Friend string + Phonebook uint + VerGiphyCate uint + VerStickerCateList uint + VerStickerGiphySuggest uint + type Features struct + ShareFile ShareFileSettings + Socket SocketSettings + type ImageMetadataGetter func(filePath string) (model.AttachmentMetadata, error) + type KeepaliveSettings struct + AlwaysKeepalive uint + KeepaliveDuration uint + TimeDeactive uint + type LoginInfo struct + HasPCClient uint + Language string + PublicIP string + Send2meID string + UID string + ZPWEnk string + ZpwServiceMapV3 ZpwServiceMapV3 + ZpwWebsocket []string + type MutableContext interface + AsReadOnly func() Context + Client func() *http.Client + Proxy func() func(*http.Request) (*url.URL, error) + SealLogin func(seal Seal) + SetCookieJar func(j http.CookieJar) + SetIMEI func(imei string) + SetLanguage func(lang string) + SetUserAgent func(ua string) + func NewContext(optFns ...Option) MutableContext + type OfflineMonitor struct + Enable bool + type OneOrMany struct + Values []T + func (o *OneOrMany[T]) UnmarshalJSON(b []byte) error + func (o OneOrMany[T]) MarshalJSON() ([]byte, error) + func (o OneOrMany[T]) Single() (T, bool) + func (o OneOrMany[T]) Slice() []T + type Option func(*options) + func WithAPIType(t uint) Option + func WithAPIVersion(v uint) Option + func WithCheckUpdate(v bool) Option + func WithHTTPClient(c *http.Client) Option + func WithImageMetadataGetter(f ImageMetadataGetter) Option + func WithLogLevel(level uint8) Option + func WithLogging(v bool) Option + func WithSelfListen(v bool) Option + type OptionsSnapshot struct + APIType uint + APIVersion uint + CheckUpdate bool + Client *http.Client + ImageMetadataGetter ImageMetadataGetter + LogLevel uint8 + Logging bool + SelfListen bool + type QueueCtrlActionIDMap struct + CMD_603_0 string + CMD_610_0 string + CMD_610_1 string + CMD_611_0 string + CMD_611_1 string + type Seal struct + ExtraVer *ExtraVer + IMEI string + Jar http.CookieJar + Language string + LoginInfo *LoginInfo + SecretKey SecretKey + Settings *Settings + UID string + UserAgent string + type SecretKey string + func (s SecretKey) Bytes() []byte + func (s SecretKey) IsValid() bool + type ServerInfo struct + ExtraVer *ExtraVer + Settings *Settings + func (s *ServerInfo) UnmarshalJSON(data []byte) error + type Settings struct + Features Features + Keepalive KeepaliveSettings + type ShareFileSettings struct + BigFileDomainList []string + ChunkSizeFile int64 + FileUploadShowIcon1GB bool + MaxFile int + MaxSizeGif int + MaxSizeOriginalPhoto int + MaxSizePhoto int + MaxSizeResizePhoto int + MaxSizeShareFile int + MaxSizeShareFileV2 int64 + MaxSizeShareFileV3 int64 + NextFileTime int + RestrictedExt string + RestrictedExtFile []string + type SocketDebug struct + Enable bool + type SocketRetryConfig struct + Max *int + Times OneOrMany[int] + type SocketSettings struct + CloseAndRetry []int + Debug SocketDebug + DisableLP bool + EnableChatSocket bool + EnableCtrlSocket bool + MaxMsgSize uint + OfflineMonitor OfflineMonitor + PingInterval int + QueueCtrlAction QueueCtrlActionIDMap + ReconnectAfterFB bool + ResetEndpoint uint + Retries map[string]SocketRetryConfig + RotateErrorCodes []int + SubmitWssLog bool + type UploadCallback = func(data model.UploadAttachment) + type ZpwServiceMap = ZpwServiceMapV3 + type ZpwServiceMapV3 struct + Aext []string + Alias []string + AutoReply []string + Boards []string + Catalog []string + Chat []string + ChatE2E []string + Consent []string + Conversation []string + DownloadStickerUrl []string + FallbackLP []string + File []string + Friend []string + FriendBoard []string + FriendLan []string + Group []string + GroupBoard []string + GroupCloudMessage []string + GroupE2E []string + GroupPoll []string + Label []string + MediaStore []string + MediaStoreSend2me []string + OtherContact []string + Profile []string + PushAct []string + QuickMessage []string + Reaction []string + RecentSearch []string + SpContact []string + Sticker []string + SyncAction []string + TodoUrl []string + UpFile []string + VoiceCall []string + Workspace []string + Zavi []string + Zcloud []string + ZcloudUpFile []string + Zfamily []string + Zimsg []string