Interface TextCompositionStyle

Describes a style that can be used to compose a text.

interface TextCompositionStyle {
    @type: "textCompositionStyle";
    creator_user_id: number;
    custom_emoji_id: string;
    english_example: TextCompositionStyleExample;
    install_count: number;
    is_creator?: boolean;
    is_custom?: boolean;
    name: string;
    prompt: string;
    title: string;
}

Properties

@type: "textCompositionStyle"
creator_user_id: number

User identifier of the creator of the style; 0 if none or unknown.

custom_emoji_id: string

Identifier of the custom emoji corresponding to the style; 0 if none.

Example of the style usage in English; may be null if unknown.

install_count: number

Number of users that installed the style; for created custom styles only; 0 if unknown.

is_creator?: boolean

True, if the user is creator of the style.

is_custom?: boolean

True, if the style is created by a user.

name: string

Name of the style.

prompt: string

Prompt of the style; for created custom styles only.

title: string

Title of the style in the user application's language.