CreateChatSubscriptionInviteLink

@Serializable
data class CreateChatSubscriptionInviteLink(val chatId: ChatIdentifier, val subscriptionPrice: UInt, val name: String? = null, val subscriptionPeriod: TimeSpan = 30.days, val expirationUnixTimeStamp: TelegramDate? = null) : CreateChatInviteLink.Subscription

Represent request

See also

Constructors

Link copied to clipboard
constructor(chatId: ChatIdentifier, subscriptionPrice: UInt, name: String? = null, subscriptionPeriod: TimeSpan = 30.days, expirationUnixTimeStamp: TelegramDate? = null)

Properties

Link copied to clipboard
@SerialName(value = "chat_id")
open override val chatId: ChatIdentifier
Link copied to clipboard
@SerialName(value = "expire_date")
open override val expirationUnixTimeStamp: TelegramDate? = null
Link copied to clipboard
open override val expireDate: DateTime?
Link copied to clipboard
@SerialName(value = "name")
open override val name: String? = null
Link copied to clipboard
open override val requestSerializer: SerializationStrategy<*>
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<ChatInviteLinkUnlimited>
Link copied to clipboard
@SerialName(value = "subscription_period")
@EncodeDefault
open override val subscriptionPeriod: TimeSpan
Link copied to clipboard
@SerialName(value = "subscription_price")
open override val subscriptionPrice: UInt

Functions

Link copied to clipboard
open override fun method(): String