Kogno
Search…
⌃K

contact

Creates a message with contact information.

contact(params=Hash)

Platforms

Platform
Supported
Messenger
WhatsApp
Telegram

Usage

if @user.platform == "telegram"
@reply.contact(
{
first_name: "Martín",
last_name: "Acuña Lledó",
phone_number: "+1 (321) 800-5873"
}
)
elsif @user.platform == "whatsapp"
@reply.contact(
[
{
name: {
formatted_name: "Martín Acuña Lledó",
first_name: "Martín",
last_name: "Acuña Lledó"
},
phones:[
{
phone: "+1 (321) 800-5873",
type: "HOME"
}
]
}
]
)
end

Params

Name
Description
params Hash
Required.
It varies depends on the platform.
Please check documentation on WhatsApp and Telegram for more information.
Last modified 8mo ago