Class TdApi.InternalLinkTypePublicChat
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.InternalLinkType
dev.voroby.springframework.telegram.client.TdApi.InternalLinkTypePublicChat
- Enclosing class:
- TdApi
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.
-
Field Summary
Modifier and TypeFieldDescriptionUsername of the chat.static final int
Identifier uniquely determining type of the object.Draft text for message to send in the chat.boolean
True, if chat profile information screen must be opened; otherwise, the chat itself must be opened. -
Constructor Summary
ConstructorDescriptionThe link is a link to a chat by its username.InternalLinkTypePublicChat
(String chatUsername, String draftText, boolean openProfile) The link is a link to a chat by its username. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
chatUsername
Username of the chat. -
draftText
Draft text for message to send in the chat. -
openProfile
public boolean openProfileTrue, if chat profile information screen must be opened; otherwise, the chat itself must be opened. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InternalLinkTypePublicChat
public 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. -
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.- Parameters:
chatUsername
- Username of the chat.draftText
- Draft text for message to send in the chat.openProfile
- True, if chat profile information screen must be opened; otherwise, the chat itself must be opened.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-