contacts.resolveUsername
Find a user, chat or channel by name
Determines who is using the public name and returns the identifier along with associated data.
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
username | string | Ja | Public name of the user, chat or channel. |
referer | string | Nein | Source ID from the referral link, if available. |
Antworten
contacts.ResolvedPeer
MTProto RPC
- 400 · CONNECTION_LAYER_INVALID – Layer ungültig.
- 400 · STARREF_EXPIRED – Der angegebene Empfehlungslink ist ungültig.
- 400 · USERNAME_INVALID — The provided username is not valid.
- 400 · USERNAME_NOT_OCCUPIED — The provided username is not occupied.