Nadia.InputLocationMessageContent (nadia v1.6.1)

View Source

Typed builder for Telegram InputLocationMessageContent.

Coordinates are validated as ordinary latitude and longitude degree values. Optional live-location fields enforce the bounds documented by Telegram.

Summary

Types

t()

Typed inline-query content containing a location.

Functions

Builds location content for an inline-query result.

Types

options()

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

t()

@opaque t()

Typed inline-query content containing a location.

Functions

new(latitude, longitude, options \\ [])

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

Builds location content for an inline-query result.

Supported options are :horizontal_accuracy, :live_period, :heading, and :proximity_alert_radius. Options whose value is nil are omitted.