BaileysEx.Protocol.MessageStubType (baileys_ex v0.1.0-alpha.9)

Copy Markdown View Source

Group notification stub types for synthetic messages.

Maps string stub type identifiers from WhatsApp group notifications to descriptive atoms for pattern matching in the message receiver.

Summary

Functions

Return the full mapping of string keys to atom values.

Return all known stub type atoms.

Convert a string stub type to its atom representation.

Functions

all()

@spec all() :: %{required(String.t()) => atom()}

Return the full mapping of string keys to atom values.

all_types()

@spec all_types() :: [atom()]

Return all known stub type atoms.

from_string(type)

@spec from_string(String.t()) :: atom() | nil

Convert a string stub type to its atom representation.

Returns nil if the stub type is not recognized.