Go-whatsapp: Set User Agent

Created on 9 Apr 2020  路  2Comments  路  Source: Rhymen/go-whatsapp

Hi Rhymen, please provide function to set user agent such as browser like this : _Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0_

thanks in advance

Most helpful comment

I think you are trying to set a client name instead of an user agent.
func (wac *Conn) SetClientName(long, short string) error

Icons will show up automatically if they are recognized by whatsapp.

For example if you use wac.SetClientName("Firefox", "Firefox") your users will see a Firefox icon.

All 2 comments

I think you are trying to set a client name instead of an user agent.
func (wac *Conn) SetClientName(long, short string) error

Icons will show up automatically if they are recognized by whatsapp.

For example if you use wac.SetClientName("Firefox", "Firefox") your users will see a Firefox icon.

Thanks neca, sorry for my ignorance on api docs. thanks for help

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anton-rs picture anton-rs  路  10Comments

jhow2892 picture jhow2892  路  3Comments

ribeiroferreiralucas picture ribeiroferreiralucas  路  8Comments

yazeed44 picture yazeed44  路  4Comments

Leonardo-Crespo picture Leonardo-Crespo  路  6Comments