# Схема: set\_public\_channel: outputSchema

Source: <https://telegafirst.com/docs/schema-adfa5b59de2e4a99bf2a2ba3a498509162173d7aab26c3e98ab19c630fbbea1c>
Locale: ru
releaseGitSha: 005a4dc9d76f69a0815df4e3f98b9050d4d46afb
sourceContentDigest: c7ef20b7c87b7cf3f01e40be144803ee33a795a867b75c839ebd25573fd45114
Version: 5

# Схема: set\_public\_channel: outputSchema

| Поле | Значение |
| - | - |
| $schema | "<https://json-schema.org/draft/2020-12/schema>" |
| additionalProperties | false |
| properties.channel.anyOf.0.additionalProperties | false |
| properties.channel.anyOf.0.properties.channel.enum | \["telegram","max","vk"] |
| properties.channel.anyOf.0.properties.channel.type | "string" |
| properties.channel.anyOf.0.properties.channel\_chat\_id.maxLength | 128 |
| properties.channel.anyOf.0.properties.channel\_chat\_id.minLength | 1 |
| properties.channel.anyOf.0.properties.channel\_chat\_id.type | "string" |
| properties.channel.anyOf.0.properties.handle.description | "The @handle without the @; null when the channel has none." |
| properties.channel.anyOf.0.properties.handle.type | \["string","null"] |
| properties.channel.anyOf.0.properties.ready.description | "true: the bot reads the channel now and subscription checks work; false: see reason." |
| properties.channel.anyOf.0.properties.ready.type | "boolean" |
| properties.channel.anyOf.0.properties.reason.anyOf.0.description | "Why the messenger could not be asked: the bot has no token, it did not answer in time, or it answered with an error." |
| properties.channel.anyOf.0.properties.reason.anyOf.0.enum | \["no\_token","timeout","provider\_error"] |
| properties.channel.anyOf.0.properties.reason.anyOf.0.type | "string" |
| properties.channel.anyOf.0.properties.reason.anyOf.1.type | "null" |
| properties.channel.anyOf.0.properties.title.type | \["string","null"] |
| properties.channel.anyOf.0.properties.url.description | "The address a customer opens to join; null when the messenger did not answer." |
| properties.channel.anyOf.0.properties.url.type | \["string","null"] |
| properties.channel.anyOf.0.required | \["channel","channel\_chat\_id","title","handle","url","ready","reason"] |
| properties.channel.anyOf.0.type | "object" |
| properties.channel.anyOf.1.type | "null" |
| properties.channel.description | "The channel bound after the call; null when outcome is unavailable." |
| properties.outcome.description | "unavailable: the messenger did not answer, nothing changed; repeat the call." |
| properties.outcome.enum | \["connected","unchanged","unavailable"] |
| properties.outcome.type | "string" |
| properties.reason.anyOf.0.description | "Why the messenger could not be asked: the bot has no token, it did not answer in time, or it answered with an error." |
| properties.reason.anyOf.0.enum | \["no\_token","timeout","provider\_error"] |
| properties.reason.anyOf.0.type | "string" |
| properties.reason.anyOf.1.type | "null" |
| properties.replaced\_channel\_chat\_id.anyOf.0.maxLength | 128 |
| properties.replaced\_channel\_chat\_id.anyOf.0.minLength | 1 |
| properties.replaced\_channel\_chat\_id.anyOf.0.type | "string" |
| properties.replaced\_channel\_chat\_id.anyOf.1.type | "null" |
| properties.replaced\_channel\_chat\_id.description | "The channel this one replaced on the same messenger; null when none was bound." |
| required | \["outcome","channel","replaced\_channel\_chat\_id","reason"] |
| type | "object" |
