Kogno
  • Introduction
  • Getting Started
    • Configuration
    • Starting the Server
    • Messenger Configuration
    • Telegram Configuration
    • WhatsApp Configuration
    • NLP Configuration
  • Conversation Class
  • Contexts
    • Blocks
      • before_anything
      • postback
      • deep_link
      • command
      • any_attachment
      • regular_expression
      • keyword
      • any_number
      • any_text
      • intent
      • entity
      • membership
      • recurring_notification
      • everything_else
      • after_all
    • Sub Contexts
    • Routing
    • Sequences
    • Conversational Forms
  • Replies / Notifications
    • text
    • button
    • quick_reply
    • raw
    • list
    • carousel
    • url
    • typing
    • image
    • video
    • html
    • markdown
    • contact
    • location
    • recurring_notification_request
    • messenger_generic_template
    • whatsapp_template
  • Templates
  • Models
    • User model
  • Scheduled Messages
  • Telegram Inline Query
  • Command Line
  • Global Methods
  • Internationalization
Powered by GitBook
On this page
  • url(params=Hash)
  • Platforms
  • Usage
  • Params

Was this helpful?

  1. Replies / Notifications

url

Creates a message that includes a link to a website, as well as a title, subtitle, photo and a button label.

url(params=Hash)

Platforms

Platform
Supported

Messenger

WhatsApp

Telegram

Usage

@reply.url(
  {
    title: "Follow Kogno on Twitter",
    sub_title: "Get any update from our framework.",
    image: "https://pbs.twimg.com/profile_images/1533726469641338881/Q9dM6DpM_400x400.jpg",
    url: "https://twitter.com/kogno_framework",
    button: "Follow US"
  }
)    

Params

Name
Description

title String

Required.

URL Title

sub_title String

Optional. Brief description displayed below the title.

image String

Required. An image url

url String

Required. An image url

button String

Optional. A button label.

Not available in WhatsApp.

In Messenger can be included two extra parameters: messenger_extensions (boolean) and image_aspect_ratio (:horizontal or :square). If they are present, the other platforms will just ignore them.

PreviouscarouselNexttyping

Last updated 2 years ago

Was this helpful?