contact
Creates a message with contact information.
Platform | Supported |
---|---|
Messenger | |
WhatsApp | |
Telegram |
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
Last modified 8mo ago