Module tdlight.api

Class TdApi.ReplacePrimaryChatInviteLink

Enclosing class:
TdApi

public static final 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
      See Also:
  • Constructor Details

    • ReplacePrimaryChatInviteLink

      public ReplacePrimaryChatInviteLink()
      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)
      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 - long Chat identifier.
    • ReplacePrimaryChatInviteLink

      public ReplacePrimaryChatInviteLink(DataInput input) throws IOException
      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

      Throws:
      IOException
  • Method Details