Nadia.ReactionType (nadia v1.6.0)

View Source

Typed builders for Telegram ReactionType objects.

Builders fix the Telegram type discriminator. Emoji and custom-emoji identifiers must be non-empty valid UTF-8 strings.

Summary

Types

t()

A typed Telegram ReactionType value. Its representation is opaque.

Functions

Builds a custom emoji reaction.

Builds a standard emoji reaction.

Builds a paid reaction.

Types

t()

@opaque t()

A typed Telegram ReactionType value. Its representation is opaque.

variant()

@type variant() :: :emoji | :custom_emoji | :paid

Functions

custom_emoji(custom_emoji_id)

@spec custom_emoji(binary()) :: t()

Builds a custom emoji reaction.

emoji(emoji)

@spec emoji(binary()) :: t()

Builds a standard emoji reaction.

paid()

@spec paid() :: t()

Builds a paid reaction.