Class TdApi.GenerateChatInviteLink

Enclosing class:
TdApi

public static class TdApi.GenerateChatInviteLink
extends TdApi.Function
Generates a new invite link for a chat; the previously generated link is revoked. 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

    • GenerateChatInviteLink

      public GenerateChatInviteLink()
      Generates a new invite link for a chat; the previously generated link is revoked. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right.

      Returns ChatInviteLink

    • GenerateChatInviteLink

      public GenerateChatInviteLink​(long chatId)
      Generates a new invite link for a chat; the previously generated link is revoked. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right.

      Returns ChatInviteLink

      Parameters:
      chatId - long Chat identifier.
    • GenerateChatInviteLink

      public GenerateChatInviteLink​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details