Rhymen / go-whatsapp

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

How to get connected phone number #538

Open maeverson opened 3 years ago

maeverson commented 3 years ago

Hi, There is a way to get phone number who scanned QRCODE?

Thanks.

hrizal commented 3 years ago

you can get the number from :

        session, err = wac.Login(qr)
        wanumber = strings.TrimSuffix(string(session.Wid), "@c.us")
maeverson commented 3 years ago

Thanks so much, @hrizal