contacts.resolveUsername

Resolve a @username to get peer info

 Method schema is available as of layer 38. Switch ยป

Parameters

Name Type Description
username string @username to resolve

Result

contacts.ResolvedPeer

Possible errors

Code Type Description
400 CONNECTION_LAYER_INVALID Layer invalid.
400 USERNAME_INVALID The provided username is not valid.
400 USERNAME_NOT_OCCUPIED The provided username is not occupied.

Bots can use this method