What I’m Trying to Do
I’m working on an automation project using UiPath where I generate a daily report in Excel using VBA. Instead of sending the result via email, I want to send it directly to Telegram using a bot.
What I Have So Far
- I have already created a Telegram bot and retrieved the bot token.
- I also got the chat ID (from a group) and tested sending messages manually using the Telegram API.
- I successfully generated the Excel report using VBA, and I’m calling it from UiPath using the ‘Invoke VBA’ activity.
- I want to send the Excel report content (either as text or as a file) to Telegram from UiPath automatically.
What I Need Help With
- What is the best way to send a message or file (Excel) to Telegram from UiPath?
- Should I use HTTP Request activity, or is there a better approach?
- Are there any samples or packages available for Telegram integration in UiPath?
Additional Info
- I’m using UiPath Studio version 2023.x
- Telegram message sending already works when I test it with browser and bot API.
- I just want to fully automate the process from UiPath.
The Problem
When I run the automation in UiPath, I get the following error:
“Trust Access to the VBA project object model must be enabled from Excel…”
I have already checked the setting:
File > Options > Trust Center > Trust Center Settings > Macro Settings > Trust access to the VBA project object model
…but I still get the same error.
My Question
Has anyone else experienced this issue when running a VBA macro from UiPath? Is there any workaround or something I might be missing?
Thank you in advance!