Nadia.InputContactMessageContent (nadia v1.6.1)

View Source

Typed builder for Telegram InputContactMessageContent.

Contact text fields must be valid UTF-8. Required text fields must be non-empty, and :vcard is validated against Telegram's 0 to 2048 byte limit.

Summary

Types

t()

Typed inline-query content containing a contact.

Functions

Builds contact content for an inline-query result.

Types

options()

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

t()

@opaque t()

Typed inline-query content containing a contact.

Functions

new(phone_number, first_name, options \\ [])

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

Builds contact content for an inline-query result.

Supported options are :last_name and :vcard. Options whose value is nil are omitted.