public static class TdApi.CreateChatSubscriptionInviteLink extends TdApi.Function<TdApi.ChatInviteLink>
Returns ChatInviteLink
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
name
Invite link name; 0-32 characters.
|
TdApi.StarSubscriptionPricing |
subscriptionPricing
Information about subscription plan that will be applied to the users joining the chat via the link.
|
| Constructor and Description |
|---|
CreateChatSubscriptionInviteLink()
Default constructor for a function, which creates a new subscription invite link for a channel chat.
|
CreateChatSubscriptionInviteLink(long chatId,
java.lang.String name,
TdApi.StarSubscriptionPricing subscriptionPricing)
Creates a function, which creates a new subscription invite link for a channel chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public java.lang.String name
public TdApi.StarSubscriptionPricing subscriptionPricing
public static final int CONSTRUCTOR
public CreateChatSubscriptionInviteLink()
Returns ChatInviteLink
public CreateChatSubscriptionInviteLink(long chatId,
java.lang.String name,
TdApi.StarSubscriptionPricing subscriptionPricing)
Returns ChatInviteLink
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object