I'm using the media.upload method for uploading files in google chat. The documentation for the same is here links to google chat upload method docs
According to google document response should be of following format.
{ "resourceName": string, "attachmentUploadToken": string }
But I'm getting a response with only attachmentUploadToken and resourceName is missing in the response.
resourceName is a required parameter for downloading the file.
API that I used:
POST https://chat.googleapis.com/upload/v1/spaces/AAAA5XYqpEE/attachments:upload?filename=heyo.pdf
Wanted to check if there is an issue with my use of API or is this a bug from the API's end.