telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Interface MessageEntity

    interface MessageEntity {
        custom_emoji_id?: string;
        date_time_format?: string;
        language?: string;
        length: number;
        offset: number;
        type: MessageEntityType;
        unix_time?: number;
        url?: string;
        user?: User;
    }
    Index
    custom_emoji_id?: string

    For 'custom_emoji' only, unique identifier of the custom emoji.

    date_time_format?: string

    For 'date_time' only, the string that defines the formatting of the date and time.

    language?: string

    For 'pre' only, the programming language of the entity text.

    length: number

    Length of the entity in UTF-16 code units.

    offset: number

    Offset in UTF-16 code units to the start of the entity.

    Type of the entity (e.g. 'mention', 'hashtag', 'bot_command', 'url', 'bold', 'italic', etc.).

    unix_time?: number

    For 'date_time' only, the Unix time associated with the entity.

    url?: string

    For 'text_link' only, URL that will be opened after user taps on the text.

    user?: User

    For 'text_mention' only, the mentioned user.