_sanjay_r
(Sanjay R)
1
Hi all,
I have an image in my project directory.
My bot is hosted on telegram via ngrok.
I have a custom action, to display the image as well.
I tried using `
dispatcher.utter_message(image="/p1.png")
`
But it dosn’t display the image.
What path do I give to display the image?
bparikh99
(Bhavya Parikh)
2
Link=https://i.imgur.com/nGF1K8f.jpg
you can use utter_template(template_name ,tracker,link=Link)
template_name will render that image
_sanjay_r
(Sanjay R)
3
hey @bparikh99,
But that is a link of an image, that’s on the internet right ? For that it works.
The image i want to show is on my local machine ( inside project directory ).
Then, it’s not working.
k1m
(Kim)
4
Hi @_sanjay_r. Here’s what Alan said:
2 Likes
Jivitesh
(sharma)
6
what is passed to template_name in utter_template? im a little confused about that