Gift

@Serializable
data class Gift(val id: String, val sticker: Sticker, val starCount: Int, val totalCount: Int? = null, val remainingCount: Int? = null)

This object represents a gift that can be sent by the bot.

Api reference

Constructors

Link copied to clipboard
constructor(id: String, sticker: Sticker, starCount: Int, totalCount: Int? = null, remainingCount: Int? = null)

Properties

Link copied to clipboard
val id: String

Unique identifier of the gift

Link copied to clipboard
val remainingCount: Int? = null

Optional. The number of remaining gifts of this type that can be sent; for limited gifts only

Link copied to clipboard

The number of Telegram Stars that must be paid to send the sticker

Link copied to clipboard

The sticker that represents the gift

Link copied to clipboard
val totalCount: Int? = null

Optional. The total number of the gifts of this type that can be sent; for limited gifts only