Class TdApi.ReplacePrimaryChatInviteLink

Enclosing class:
TdApi

public static class TdApi.ReplacePrimaryChatInviteLink extends TdApi.Function<TdApi.ChatInviteLink>
Replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right.

Returns ChatInviteLink

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • ReplacePrimaryChatInviteLink

      public ReplacePrimaryChatInviteLink()
      Default constructor for a function, which replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right.

      Returns ChatInviteLink

    • ReplacePrimaryChatInviteLink

      public ReplacePrimaryChatInviteLink(long chatId)
      Creates a function, which replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right.

      Returns ChatInviteLink

      Parameters:
      chatId - Chat identifier.
  • Method Details