Gram now supports uploading and serving chat attachments through two new API endpoints.The /rpc/assets.uploadChatAttachment endpoint allows uploading attachments for use in chat conversations. The /rpc/assets.serveChatAttachment endpoint can be accessed with an API key or session cookie. The Gram-Project header is not required on the serve endpoint, making it easy for session-based clients to embed attachments in chat using standard HTML tags.For example, images can be embedded directly in chat:
Chat attachment upload and serve endpoints#1173 - Added two new API endpoints for uploading and serving chat attachments, enabling rich media in chat experiences. (Author: @disintegrator)