Nadia.InputTextMessageContent (nadia v1.6.0)

View Source

Typed builder for Telegram InputTextMessageContent.

Message text must contain 1 to 4096 valid UTF-8 characters. Optional formatting can be supplied with either :parse_mode or :entities, but not both. :link_preview_options accepts the current fixed Telegram LinkPreviewOptions shape and preserves explicit false values.

Summary

Types

t()

Typed inline-query content containing a text message.

Functions

Builds text content for an inline-query result.

Types

options()

@type options() :: keyword() | map()

t()

@opaque t()

Typed inline-query content containing a text message.

Functions

new(message_text, options \\ [])

@spec new(binary(), options()) :: t()

Builds text content for an inline-query result.

Supported options are :parse_mode, :entities, and :link_preview_options. Options whose value is nil are omitted.