Package org.drinkless.tdlib
Class TdApi.ReplacePrimaryChatInviteLink
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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 Summary
Fields Modifier and Type Field Description longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.
-
Constructor Summary
Constructors Constructor Description ReplacePrimaryChatInviteLink()Default constructor for a function, which replaces current primary invite link for a chat with a new primary invite link.ReplacePrimaryChatInviteLink(long chatId)Creates a function, which replaces current primary invite link for a chat with a new primary invite link.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-