# Схема: UserPublic

Source: <https://telegafirst.com/docs/schema-54e00f9c4c4d5463a1cebdcad51e3fcd7bc5e3279901183d125c54989f10de20>
Locale: ru
releaseGitSha: fc570c76ffc9cb87e2462d45b14f5c1b52fbaf0d
sourceContentDigest: 62160d59d1ebd199b72ed83774bd79688223674caba38ab8c42f1f5c0551c31d
Version: 3

# Схема: UserPublic

| Поле | Значение |
| - | - |
| additionalProperties | false |
| properties.channel.enum | \["telegram","max","vk"] |
| properties.channel.type | "string" |
| properties.channel\_user\_id.maxLength | 128 |
| properties.channel\_user\_id.minLength | 1 |
| properties.channel\_user\_id.type | "string" |
| properties.chat\_status.description | "Who answers the customer now: the bot, an AI agent or a human manager" |
| properties.chat\_status.enum | \["bot","ai\_qualifier","ai\_manager","ai\_coach","manager"] |
| properties.chat\_status.type | "string" |
| properties.created\_at.format | "date-time" |
| properties.created\_at.type | "string" |
| properties.email.type | \["string","null"] |
| properties.first\_name.type | \["string","null"] |
| properties.has\_coach\_access.type | "boolean" |
| properties.id.maximum | 2147483647 |
| properties.id.minimum | 1 |
| properties.id.type | "integer" |
| properties.invite\_code.description | "The customer personal invitation code when they have one" |
| properties.invite\_code.maxLength | 64 |
| properties.invite\_code.minLength | 1 |
| properties.invite\_code.type | \["string","null"] |
| properties.invited\_at.format | "date-time" |
| properties.invited\_at.type | \["string","null"] |
| properties.inviter\_id.description | "Who invited the customer (the referral program); set once and never changed; null when none" |
| properties.inviter\_id.maximum | 2147483647 |
| properties.inviter\_id.minimum | 1 |
| properties.inviter\_id.type | \["integer","null"] |
| properties.is\_banned.type | "boolean" |
| properties.is\_bot\_blocked.description | "The customer blocked the bot; messages to them are not delivered" |
| properties.is\_bot\_blocked.type | "boolean" |
| properties.is\_premium.type | "boolean" |
| properties.is\_restricted.type | "boolean" |
| properties.language\_code.type | \["string","null"] |
| properties.last\_activity\_at.format | "date-time" |
| properties.last\_activity\_at.type | \["string","null"] |
| properties.last\_message\_at.format | "date-time" |
| properties.last\_message\_at.type | \["string","null"] |
| properties.last\_name.type | \["string","null"] |
| properties.last\_paid\_at.format | "date-time" |
| properties.last\_paid\_at.type | \["string","null"] |
| properties.marketing\_consent.description | "The newest answer to the marketing consent: true granted, false refused, null never asked. A refusal excludes the customer from broadcasts only" |
| properties.marketing\_consent.type | \["boolean","null"] |
| properties.partner\_assigned\_at.format | "date-time" |
| properties.partner\_assigned\_at.type | \["string","null"] |
| properties.partner\_id.description | "The partner the customer is attached to now for payouts (the partner program); null when none" |
| properties.partner\_id.maximum | 2147483647 |
| properties.partner\_id.minimum | 1 |
| properties.partner\_id.type | \["integer","null"] |
| properties.phone.type | \["string","null"] |
| properties.stat\_payments\_amount.description | "Decimal string, sum of paid amounts" |
| properties.stat\_payments\_amount.type | "string" |
| properties.stat\_payments\_count.minimum | 0 |
| properties.stat\_payments\_count.type | "integer" |
| properties.stat\_referrals\_count.minimum | 0 |
| properties.stat\_referrals\_count.type | "integer" |
| properties.tags.items.type | "string" |
| properties.tags.type | "array" |
| properties.topic\_url.description | "Link to the customer topic in the Open Lines supergroup; null until the topic exists" |
| properties.topic\_url.format | "uri" |
| properties.topic\_url.type | \["string","null"] |
| properties.updated\_at.format | "date-time" |
| properties.updated\_at.type | "string" |
| properties.username.type | \["string","null"] |
| required | \["id","channel","channel\_user\_id","username","first\_name","last\_name","language\_code","email","phone","is\_premium","chat\_status","is\_banned","is\_restricted","is\_bot\_blocked","has\_coach\_access","tags","stat\_payments\_count","stat\_payments\_amount","stat\_referrals\_count","partner\_id","partner\_assigned\_at","inviter\_id","invited\_at","marketing\_consent","topic\_url","invite\_code","last\_message\_at","last\_activity\_at","last\_paid\_at","created\_at","updated\_at"] |
| type | "object" |
