How to Add Dynamic Caption When Sending Image to Telegram via HTTP Request

Hi everyone,

I’m currently building a UiPath automation that:

  1. Reads data from an Excel file
  2. Takes a screenshot of a specific sheet or data
  3. Sends the image to a Telegram group using the HTTP Request activity

So far, the image is successfully sent to Telegram.
Now, I want to add a caption below the image, which includes a summary automatically generated from the Excel data. This summary is generated by UiPath using data from the Excel file (e.g., reading with Excel activities and processing the values).

My questions:

  1. How can I attach a dynamic caption to the image when sending it via HTTP Request?
  2. Can I just store the generated string in an Assign activity and pass it as a caption parameter in the HTTP Request?
  3. Can I also use parse_mode = Markdown to format the caption nicely on Telegram?

Thanks in advance for your help! :folded_hands:

Hi @nashwasabila11

have you tried doing the operations you stated in your below points 2) and 3)?

  1. Can I just store the generated string in an Assign activity and pass it as a caption parameter in the HTTP Request?
  2. Can I also use parse_mode = Markdown to format the caption nicely on Telegram?

Does it accept the same? ideally, it should work when you send it as parameters.

@nashwasabila11

adding caption is possible as per api

parsing is available for message but not for image

cheers

@nashwasabila11

looks like both are available for use for send photo functionality, but attribute is “parsemode” without underscore.