Module tdlight.api

Class TdApi.JoinChatByInviteLink

Enclosing class:
TdApi

public static final class TdApi.JoinChatByInviteLink extends TdApi.Function<TdApi.Chat>
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 Details

    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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

      public JoinChatByInviteLink(String inviteLink)
      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

      public JoinChatByInviteLink(DataInput input) throws IOException
      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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object