Documentation
¶
Overview ¶
Package wxkind maps wechat raw integer codes to human-readable labels. Sources: observed WeChat 4.x schema + reverse-engineered electron services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AppSubtypeNames = map[int32]string{
3: "music",
5: "link",
6: "file",
8: "file",
19: "forward_chat",
24: "file",
33: "miniprogram",
36: "miniprogram",
49: "link",
51: "channel_video",
53: "solitaire",
57: "quote",
62: "pat",
76: "music",
87: "announcement",
2000: "transfer",
2001: "red_packet",
}
AppSubtypeNames maps the subtype of an app-message (base_kind=49) to a precise human-readable kind. Falls back to "app" when subtype is unknown.
var BaseKindNames = map[int32]string{
1: "text",
3: "image",
34: "voice",
42: "card",
43: "video",
47: "sticker",
48: "location",
49: "app",
50: "voip",
10000: "system",
}
BaseKindNames maps wechat top-level message kind ints to a label. For base_kind=49 the subtype refines the meaning (see AppSubtypeNames).
var FavTypeNames = map[int64]string{
1: "text",
2: "image",
3: "voice",
4: "video",
5: "link",
6: "location",
8: "file",
14: "chat_history",
18: "miniprogram",
}
FavTypeNames maps wechat favorite kind ints to a human-readable label. Source: WeChat client schema (CDataItem types). Undocumented values (e.g. 20) fall through to "unknown".
Functions ¶
func ClassifyUsername ¶
ClassifyUsername maps a raw username to a human-readable type by well-known patterns (suffix/prefix). Stable across schema changes since it depends only on the username string shape, not contact.local_type which varies by version.
Types ¶
This section is empty.