contact

Creates a message with contact information.

contact(params=Hash)

Platforms

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

Last updated