TelegramEx.Types (TelegramEx v1.2.1)

Copy Markdown View Source

Common types used across the library.

This module defines type specifications for Telegram API data structures and common types used throughout TelegramEx.

Summary

Types

Telegram chat identifier.

A raw update from the Telegram API.

A list of updates from the Telegram API.

Types

chat_id()

@type chat_id() :: integer()

Telegram chat identifier.

Used to identify chats, users, and groups.

update()

@type update() :: map()

A raw update from the Telegram API.

Updates are maps with string keys containing message, callback query, or other update types.

updates()

@type updates() :: [update()]

A list of updates from the Telegram API.