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 the 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;
    unpaid_messages_token: string;
}

Properties

@type: "internalLinkTypePublicChat"
chat_username: string

Username of the chat.

draft_text: string

Draft text for the message to send in the chat.

open_profile?: boolean

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

unpaid_messages_token: string

Token that allows the current user to send unpaid messages; may be empty if none. If the token isn't empty and the chat is a private chat with a regular user, then call applyUnpaidMessagesToken with the user and the token.