Skip to content

InternalLinkTypePublicChat

Type · TDLib 1.8.67 · d1085f9c

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

InternalLinkTypePublicChat(
  chat_username: string,
  draft_text: string,
  open_profile: Bool
) → InternalLinkType

chat_username

string

Username of the chat

draft_text

string

Draft text for message to send in the chat

open_profile

Bool

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