GramIO API Reference / @gramio/init-data/dist / WebAppUser
Type Alias: WebAppUser<isReceiver>
WebAppUser<
isReceiver> =object&isReceiverextendstrue?object:object
Defined in: init-data/index.d.ts:10
This object contains the data of the Mini App user.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
added_to_attachment_menu? | boolean | True, if this user added the bot to the attachment menu. | init-data/index.d.ts:34 |
allows_write_to_pm? | boolean | True, if this user allowed the bot to message them. | init-data/index.d.ts:38 |
first_name | string | First name of the user or bot. | init-data/index.d.ts:18 |
id | number | A unique identifier for the user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. It has at most 52 significant bits, so a 64-bit integer or a double-precision float type is safe for storing this identifier. | init-data/index.d.ts:14 |
is_premium? | boolean | True, if this user is a Telegram Premium user. | init-data/index.d.ts:30 |
last_name? | string | Last name of the user or bot. | init-data/index.d.ts:22 |
photo_url? | string | URL of the user’s profile photo. The photo can be in .jpeg or .svg formats. Only returned for Mini Apps launched from the attachment menu. | init-data/index.d.ts:43 |
username? | string | Username of the user or bot. | init-data/index.d.ts:26 |
Type Parameters
| Type Parameter | Default type |
|---|---|
isReceiver extends boolean | false |