#Status backgroud color

3 messages · Page 1 of 1 (latest)

trail yoke
#

Hello! I was studying how the library stores the status@broadcast messages, specifically how it collects the background color information... How can I convert the color value to HEX / RGB / ...?

{
  "_data": {
    "id": {},
    "backgroundColor": 4283877887, // this
  }
}

Info:
whatsapp-web.js version: 1.17.1

trail yoke
#

After some testing the color is in HEX format, the color is contained in the last 6 values of the number.
Examples:
4280730844: #730844 or 0x730844
4283877887: #877887 or 0x877887

I still don't understand what the other 4 digits are for

tiny vortex
#

Did you manage to post the status?