Skip to main content

Module types

Module types 

Source
Expand description

Typed wrappers over raw TL user and chat types.

The raw TL layer has tl::enums::User (two variants: Empty / User) and tl::enums::Chat (five variants: Empty, Chat, Forbidden, Channel, ChannelForbidden). Working with them directly requires constant pattern-matching. This module provides three thin wrappers: User, Group, and Channel: with uniform accessor APIs.

Structs§

Channel
Typed wrapper over tl::types::Channel.
Group
Typed wrapper over tl::types::Chat.
User
Typed wrapper over tl::enums::User.

Enums§

ChannelKind
The kind of a channel or supergroup.
Chat
A unified chat type: either a basic Group or a Channel/supergroup.