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 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