Rhymen / go-whatsapp

WhatsApp Web API
MIT License
2.05k stars 490 forks source link

Get broadcast recipients #543

Closed luizpvas closed 3 years ago

luizpvas commented 3 years ago

Hey there everyone.

Is there an API to get a broadcast list recipients (the contacts of the list)?

I tried with GetGroupMetaData but it didn't return anything.

I know it's possible because it's available on whatsapp web. Maybe we can get this data with a custom query? Thanks!

luizpvas commented 3 years ago

I didn't figure out how to capture brodcast recipients, but was able to "gather" this from ack events (delivery and read confirmation).

Romerito007 commented 3 years ago

I didn't figure out how to capture brodcast recipients, but was able to "gather" this from ack events (delivery and read confirmation).

Example JID: 1623673422@broadcast

func (wac *Conn) GetBroadcastMetaData(jid string) (<-chan string, error) { data := []interface{}{"query", "contact", jid} return wac.writeJson(data) }