File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ func (cli *Client) parseBusinessProfile(node *waBinary.Node) (*types.BusinessPro
283
283
}, nil
284
284
}
285
285
286
- // GetBusinessProfile gets profile info of business whatsapp account
286
+ // GetBusinessProfile gets the profile info of a WhatsApp business account
287
287
func (cli * Client ) GetBusinessProfile (jid types.JID ) (* types.BusinessProfile , error ) {
288
288
resp , err := cli .sendIQ (infoQuery {
289
289
Type : iqGet ,
@@ -307,7 +307,7 @@ func (cli *Client) GetBusinessProfile(jid types.JID) (*types.BusinessProfile, er
307
307
}
308
308
node , ok := resp .GetOptionalChildByTag ("business_profile" )
309
309
if ! ok {
310
- return nil , & ElementMissingError {Tag : "business_profile" , In : "response empty " }
310
+ return nil , & ElementMissingError {Tag : "business_profile" , In : "response to business profile query " }
311
311
}
312
312
return cli .parseBusinessProfile (& node )
313
313
}
You can’t perform that action at this time.
0 commit comments