ChannelInfo Class

A channel info object which describes the channel.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Constructor

ChannelInfo(*, id: str | None = None, name: str | None = None, type: Literal['standard', 'shared', 'private'] | None = None, **extra_data: Any)

Keyword-Only Parameters

Name Description
id
Default value: None
name
Default value: None
type
Default value: None

Attributes

id

Unique identifier representing a channel

id: str | None

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_config: ClassVar[ConfigDict] = {'alias_generator': AliasGenerator(alias=None, validation_alias=<staticmethod(<function CustomBaseModel.validation_alias_generator>)>, serialization_alias=<staticmethod(<function CustomBaseModel.serialization_alias_generator>)>), 'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True, 'serialize_by_alias': True, 'validate_by_alias': True, 'validate_by_name': True}

name

Name of the channel

name: str | None

type

The type of the channel. Valid values are standard, shared and private.

type: Literal['standard', 'shared', 'private'] | None