Class TdApi.CreateChatInviteLink

Enclosing class:
TdApi

public static class TdApi.CreateChatInviteLink
extends TdApi.Function
Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right in the chat.

Returns ChatInviteLink

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • expireDate

      public int expireDate
      Point in time (Unix timestamp) when the link will expire; pass 0 if never.
    • memberLimit

      public int memberLimit
      Maximum number of chat members that can join the chat by the link simultaneously; 0-99999; pass 0 if not limited.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • CreateChatInviteLink

      public CreateChatInviteLink()
      Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right in the chat.

      Returns ChatInviteLink

    • CreateChatInviteLink

      public CreateChatInviteLink​(long chatId, int expireDate, int memberLimit)
      Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and canInviteUsers right in the chat.

      Returns ChatInviteLink

      Parameters:
      chatId - long Chat identifier.
      expireDate - int Point in time (Unix timestamp) when the link will expire; pass 0 if never.
      memberLimit - int Maximum number of chat members that can join the chat by the link simultaneously; 0-99999; pass 0 if not limited.
    • CreateChatInviteLink

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