TelegramEx.Builder.Location (TelegramEx v1.3.0)

Copy Markdown View Source

Builder for location payloads.

Builds sendLocation payloads. See Messages and Media.

Summary

Functions

Sets the geographic coordinates.

Sends the location to the specified chat.

Sends the location without notification sound.

Types

input()

@type input() :: map() | TelegramEx.Effect.t()

Functions

coordinates(input, lat, lng)

@spec coordinates(input(), float(), float()) :: TelegramEx.Effect.t()

Sets the geographic coordinates.

send(input, id)

@spec send(input(), integer()) :: TelegramEx.Effect.t()

Sends the location to the specified chat.

silent(input)

@spec silent(input()) :: TelegramEx.Effect.t()

Sends the location without notification sound.