AI-generated Key Takeaways
-
This documentation outlines the
CustomEmoji
resource, representing a custom emoji within Google Chat, including its properties and JSON representation. -
It describes the
CustomEmojiPayload
, detailing the data required for creating a custom emoji, specifically focusing on image content and filename. -
Developers can utilize the provided methods to create, delete, retrieve, or list custom emojis using the Google Chat API.
-
These functionalities are currently part of the Google Workspace Developer Preview Program, granting early access for testing and development purposes.
Resource: CustomEmoji
Represents a custom emoji.
JSON representation |
---|
{
"name": string,
"uid": string,
"emojiName": string,
"temporaryImageUri": string,
"payload": {
object ( |
Fields | |
---|---|
name |
Identifier. The resource name of the custom emoji, assigned by the server. Format: |
uid |
Output only. Unique key for the custom emoji resource. |
emojiName |
Optional. Immutable. User-provided name for the custom emoji, which is unique within the organization. Required when the custom emoji is created, output only otherwise. Emoji names must start and end with colons, must be lowercase and can only contain alphanumeric characters, hyphens, and underscores. Hyphens and underscores should be used to separate words and cannot be used consecutively. Example: |
temporaryImageUri |
Output only. A temporary image URL for the custom emoji, valid for at least 10 minutes. Note that this is not populated in the response when the custom emoji is created. |
payload |
Optional. Input only. Payload data. Required when the custom emoji is created. |
CustomEmojiPayload
Payload data for the custom emoji.
JSON representation |
---|
{ "fileContent": string, "filename": string } |
Fields | |
---|---|
fileContent |
Required. Input only. The image used for the custom emoji. The payload must be under 256 KB and the dimension of the image must be square and between 64 and 500 pixels. The restrictions are subject to change. |
filename |
Required. Input only. The image file name. Supported file extensions: |
Methods |
|
---|---|
|
Creates a custom emoji. |
|
Deletes a custom emoji. |
|
Returns details about a custom emoji. |
|
Lists custom emojis visible to the authenticated user. |