Class TdApi.JoinChatByInviteLink
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Chat>
dev.voroby.springframework.telegram.client.TdApi.JoinChatByInviteLink
- Enclosing class:
- TdApi
Uses an invite link to add the current user to the chat if possible. May return an error with a message "INVITE_REQUEST_SENT" if only a join request was created.
Returns Chat
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Invite link to use. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which uses an invite link to add the current user to the chat if possible.JoinChatByInviteLink
(String inviteLink) Creates a function, which uses an invite link to add the current user to the chat if possible. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
inviteLink
Invite link to use. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
JoinChatByInviteLink
public JoinChatByInviteLink()Default constructor for a function, which uses an invite link to add the current user to the chat if possible. May return an error with a message "INVITE_REQUEST_SENT" if only a join request was created.Returns
Chat
-
JoinChatByInviteLink
Creates a function, which uses an invite link to add the current user to the chat if possible. May return an error with a message "INVITE_REQUEST_SENT" if only a join request was created.Returns
Chat
- Parameters:
inviteLink
- Invite link to use.
-
-
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
-