Script to send order information to Telegram

this is working. but i came up with another issue. when i have 2 orders placed to the same ticket i dont get any results. any idea for a fix for this issue?

I use it in my production db everyday, it works like Report Ticket expression but it can be used in unsaved tickets, the another expressions require a saved ticket. It works in any automation event in which the ticket is ope

Where are you using the expression? In a script or with url printer?

When there are more than a order in the ticket the expressions returns the orders with linebreak, you should handle this via script (if you are using url printing I guess this could be the issue).