TelegramEx.Builder.Contact (TelegramEx v1.3.0)

Copy Markdown View Source

Builder for contact payloads.

Builds sendContact payloads. See Messages and Media.

Summary

Functions

Sets contact information with first name and phone number.

Sets contact information with first name, last name, and phone number.

Sends the contact to the specified chat.

Sends the contact without notification sound.

Types

input()

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

Functions

contact(input, name, phone)

@spec contact(input(), String.t(), String.t()) :: TelegramEx.Effect.t()

Sets contact information with first name and phone number.

contact(input, first_name, last_name, phone)

@spec contact(input(), String.t(), String.t(), String.t()) :: TelegramEx.Effect.t()

Sets contact information with first name, last name, and phone number.

send(input, id)

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

Sends the contact to the specified chat.

silent(input)

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

Sends the contact without notification sound.