Package org.drinkless.tdlib
Class TdApi.CreateChatSubscriptionInviteLink
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.ChatInviteLink>
org.drinkless.tdlib.TdApi.CreateChatSubscriptionInviteLink
- Enclosing class:
- TdApi
public static class TdApi.CreateChatSubscriptionInviteLink
extends TdApi.Function<TdApi.ChatInviteLink>
Creates a new subscription invite link for a channel chat. Requires canInviteUsers right in the chat.
Returns ChatInviteLink
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
Chat identifier.static final int
Identifier uniquely determining type of the object.Invite link name; 0-32 characters.Information about subscription plan that will be applied to the users joining the chat via the link. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which creates a new subscription invite link for a channel chat.CreateChatSubscriptionInviteLink
(long chatId, String name, TdApi.StarSubscriptionPricing subscriptionPricing) Creates a function, which creates a new subscription invite link for a channel chat. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdChat identifier. -
name
Invite link name; 0-32 characters. -
subscriptionPricing
Information about subscription plan that will be applied to the users joining the chat via the link. Subscription period must be 2592000 in production environment, and 60 or 300 if Telegram test environment is used. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
CreateChatSubscriptionInviteLink
public CreateChatSubscriptionInviteLink()Default constructor for a function, which creates a new subscription invite link for a channel chat. Requires canInviteUsers right in the chat.Returns
ChatInviteLink
-
CreateChatSubscriptionInviteLink
public CreateChatSubscriptionInviteLink(long chatId, String name, TdApi.StarSubscriptionPricing subscriptionPricing) Creates a function, which creates a new subscription invite link for a channel chat. Requires canInviteUsers right in the chat.Returns
ChatInviteLink
- Parameters:
chatId
- Chat identifier.name
- Invite link name; 0-32 characters.subscriptionPricing
- Information about subscription plan that will be applied to the users joining the chat via the link. Subscription period must be 2592000 in production environment, and 60 or 300 if Telegram test environment is used.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-