Nadia. StoryArea
(nadia v1.6.1)
View Source
Typed builders for Telegram story areas and their nested position and address objects.
Story-area percentage values are deliberately not range-limited. Telegram documents them as percentages but does not define a local validity range. Rotation is limited to 0 through 360 degrees.
Telegram's story-area documentation describes latitude and longitude in degrees without publishing bounds. Nadia applies the locally conventional geographic ranges of -90 through 90 latitude and -180 through 180 longitude so clearly invalid coordinates fail before a request is sent.
Builders omit nil options and preserve explicit false values.
Typed lists passed to postStory or editStory are limited to 10 location,
5 suggested-reaction, 3 link, 3 weather, and 1 unique-gift area.
Summary
Types
A typed story area, position, or location address. Its representation is opaque.
Functions
Builds a story area pointing to an HTTP, HTTPS, or tg:// URL.
Builds a story area pointing to a geographic location.
Builds a physical location address.
Builds a story-area position.
Builds a story area containing a suggested reaction.
Builds a story area pointing to a unique gift.
Builds a story area containing weather information.
Types
Functions
Builds a story area pointing to an HTTP, HTTPS, or tg:// URL.
Builds a story area pointing to a geographic location.
Builds a physical location address.
Builds a story-area position.
All six values must be numeric. Percentage values may be negative or greater
than 100; only rotation_angle is range-limited.
@spec suggested_reaction(t(), Nadia.ReactionType.t(), options()) :: t()
Builds a story area containing a suggested reaction.
Builds a story area pointing to a unique gift.
@spec weather(t(), number(), binary(), non_neg_integer()) :: t()
Builds a story area containing weather information.