Class TdApi.JoinChatByInviteLink

Enclosing class:
TdApi

public static 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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    Invite link to use.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which uses an invite link to add the current user to the chat if possible.
    Creates a function, which uses an invite link to add the current user to the chat if possible.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • CONSTRUCTOR

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

      public JoinChatByInviteLink(String inviteLink)
      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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR