Interface InternalLinkTypePublicChat

The link is a link to a chat by its username. Call searchPublicChat with the given chat username to process the link. If the chat is found, open its profile information screen or the chat itself. If draft text isn't empty and the chat is a private chat with a regular user, then put the draft text in the input field. Subtype of InternalLinkType.

interface InternalLinkTypePublicChat {
    @type: "internalLinkTypePublicChat";
    chat_username: string;
    draft_text: string;
    open_profile?: boolean;
}

Properties

@type: "internalLinkTypePublicChat"
chat_username: string

Username of the chat.

draft_text: string

Draft text for message to send in the chat.

open_profile?: boolean

True, if chat profile information screen must be opened; otherwise, the chat itself must be opened.