Class TdApi.ReplacePrimaryChatInviteLink

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.ReplacePrimaryChatInviteLink
Enclosing class:
TdApi

public static class TdApi.ReplacePrimaryChatInviteLink
extends TdApi.Function
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:
      Constant Field Values
  • 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
      Throws:
      IOException
  • Method Details