Class 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 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

      • ReplacePrimaryChatInviteLink

        public ReplacePrimaryChatInviteLink()
        Default constructor for a function, which 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)
        Creates a function, which 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 - Chat identifier.