image
Creates a message with an image provided via a url.
Last updated
Was this helpful?
Creates a message with an image provided via a url.
Last updated
Was this helpful?
Was this helpful?
image(params=Hash)
Messenger
Telegram
@reply.image({
url: "https://pbs.twimg.com/profile_images/1533726469641338881/Q9dM6DpM_400x400.jpg",
caption: "Kogno Framework",
buttons: [
{
payload: :contact_us,
title: "Contact US!"
},
{
payload: :twitter,
title: "Follow US!"
}
]
})
url
String
Required.
Image URL
caption
String
Optional: Telegram and WhatsApp Required: Messenger. Brief description of the image.
buttons
Array
Optional.
Array of buttons, depending on the platform they can be of different types, by default they are payload
.
image_aspect_ratio
Enum
Optional.
Only available on Messenger.
:horizontal
(Default) or :square