Resolve a @username to get peer info
Method schema is available as of layer 38. Switch »
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| username | string | @username to resolve |
| referer | flags.0?string | Referrer ID from referral links ». |
| Code | Type | Description |
|---|---|---|
| 400 | CONNECTION_LAYER_INVALID | Layer invalid. |
| 400 | STARREF_EXPIRED | The specified referral link is invalid. |
| 400 | USERNAME_INVALID | The provided username is not valid. |
| 400 | USERNAME_NOT_OCCUPIED | The provided username is not occupied. |
Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.