Skip to content

Channel Model

teams_lib_pzsp2_z1.model.channel

Classes

Channel dataclass

Represents a Microsoft Teams channel.

This model serves as a data container for channel properties returned by the underlying Go library.

Attributes:

Name Type Description
id str

The unique identifier of the channel.

name str

The display name of the channel (e.g., "General", "Development").

is_general bool

Indicates whether this is the default 'General' channel. The General channel typically cannot be deleted or renamed.

Source code in teams_lib_pzsp2_z1/model/channel.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
@dataclass
class Channel:
    """Represents a Microsoft Teams channel.

    This model serves as a data container for channel properties returned
    by the underlying Go library.

    Attributes:
        id (str): The unique identifier of the channel.
        name (str): The display name of the channel (e.g., "General", "Development").
        is_general (bool): Indicates whether this is the default 'General' channel.
            The General channel typically cannot be deleted or renamed.
    """

    id: str
    name: str
    is_general: bool