I am currently working to dynamically create a Google doc that will store some information and then share that link to Google Chats using a Webhook. I have everything all set up and the code runs, the only thing is when I manually copy and paste the link into Google Chats a little preview of the Doc will pop up with an option to open in Google Chats where it will then break into a split screen and let you view and edit the Doc right there in Chats. See my attached image. Picture of what happens when link is manually shared
However, when I have the webhook send this exact same link into Google Chats, everything is the same except for the fact that it does not give you the option to open in Chats. See my attached image. Webhook's shared Doc
So far I have tried changing the sharing permissions, and sending the Doc as both a Doc and a File type. None of these things have worked so far and I haven't been able to find anyone else with a similar problem or any documentation on this little feature. As far as the scope of this project goes I need whoever will be opening this file to be able to stay in Google Chats which is why I am so bent on making this work. Any help or direction is welcomed.
Thank you!