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. In basic groups this can be called only by the group's creator; in supergroups and channels this requires appropriate administrator rights.

    Returns ChatInviteLink

    • Field Summary

      Fields 
      Modifier and Type Field Description
      long chatId
      Chat identifier.
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
    • Field Detail

      • chatId

        public long chatId
        Chat identifier.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GenerateChatInviteLink

        public GenerateChatInviteLink()
        Default constructor.
      • GenerateChatInviteLink

        public GenerateChatInviteLink​(long chatId)
        Constructor for initialization of all fields.
        Parameters:
        chatId - Chat identifier.