How can I get images sent from users on Telegram with tracker? It seems like tracker.events does not capture any response that has photos attachment?
The telegram channel doesn’t handle images sent from the user. I haven’t looked at that channel in a while but you would probably want to start by looking at the code here and deciding how you think it should be handled in the channel.
-
Write a
_is_imagefunction in your custom connector with the kind of images you expect receive: photo, sticker or document (you need to check the mime type for the last one). It’s all in the variable msg (msg = update.messagein the base telegram connector). -
Call that function in the part where you validate if is a button, user message, etc.
-
Write a function to download the image, see this link.
-
Give a value to the
textvariable. I recommend a payload similar to the one used in buttons with an intentimageand an entityimagepathwith the path of the image you downloaded. -
Modify your actions, rules, stories and domain accordingly.