Skip to main content

Module types

Module types 

Source
Expand description

Ergonomic high-level wrappers over raw TL user/chat types (G-37).

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
Wrapper around a Telegram channel or supergroup (tl::types::Channel).
Group
Wrapper around a basic Telegram group (tl::types::Chat).
User
Wrapper around tl::enums::User with ergonomic accessors.

Enums§

Chat
A unified chat type — either a basic Group or a Channel/supergroup.