- 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
ConstructorDescriptionUses an invite link to add the current user to the chat if possible.JoinChatByInviteLink
(DataInput input) Uses an invite link to add the current user to the chat if possible.JoinChatByInviteLink
(String inviteLink) Uses an invite link to add the current user to the chat if possible. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
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()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
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.Returns
Chat
-
JoinChatByInviteLink
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:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
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
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-