Contenido

6. User info — ChatWire kind 0x06

User info (ChatWireUserInfo)

Pushes the sender’s AboutMe text and optional avatar image to the peer. Not stored as a normal chat bubble in history. Oversized avatars may be JPEG-compressed to PeerProfileLimits.MaxAvatarBytes before encode. Wire: S2P1 + 0x06 + aboutLen u16 LE + AboutMe UTF-8 + avatarLen u32 LE + avatar bytes. Source: ChatWireUserInfo / EncodeUserInfo.

User info

Example (unencrypted)

Logical: aboutMe = "Hi", avatar = empty

Hex (unencrypted):
  53 32 50 31  06
  02 00              # aboutLen = 2
  48 69              # "Hi"
  00 00 00 00        # avatarLen = 0

Decoded: S2P1 | UserInfo | about="Hi" | no avatar