Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
data class DeleteStickerFromSet(val sticker: FileId) : StickerAction<Boolean>
Link copied to clipboard
@Serializable
data class DeleteStickerSet(val name: StickerSetName) : SimpleRequest<Boolean>
Link copied to clipboard
@Serializable(with = InputStickerSerializer::class)
sealed interface InputSticker
Link copied to clipboard
Link copied to clipboard
@Serializable
data class SetCustomEmojiStickerSetThumbnail(val name: StickerSetName, val customEmojiId: CustomEmojiId) : StickerSetAction
Link copied to clipboard
@Serializable
data class SetStickerEmojiList(val sticker: FileId, val emojis: List<String>) : StickerAction<Boolean>
Link copied to clipboard
@Serializable
data class SetStickerKeywords(val sticker: FileId, val keywords: List<String>) : StickerAction<Boolean>
Link copied to clipboard
@Serializable
data class SetStickerMaskPosition(val sticker: FileId, val maskPosition: MaskPosition) : StickerAction<Boolean>
Link copied to clipboard
@Serializable
data class SetStickerPositionInSet(val sticker: FileId, val position: Int) : StickerAction<Boolean>
Link copied to clipboard
@Serializable
data class SetStickerSetThumbnail(val userId: UserId, val name: StickerSetName, val format: StickerFormat, val thumbnail: FileId? = null) : OwnerStickerSetAction
Link copied to clipboard
@Serializable
data class SetStickerSetTitle(val name: StickerSetName, val title: String) : StickerSetAction
Link copied to clipboard
@Serializable
data class UploadStickerFile(val userId: UserId, val sticker: MultipartFile = throw IllegalStateException("Detected autocreating try: this class can't be deserialized"), val stickerFormat: StickerFormat) : MultipartRequest<File>

Functions

Link copied to clipboard
fun AddStickerToSet(userId: UserId, stickerSetName: StickerSetName, inputSticker: InputSticker): Request<Boolean>
fun AddStickerToSet(userId: UserId, stickerSetName: String, inputSticker: InputSticker): Request<Boolean>
Link copied to clipboard
fun CreateNewStickerSet(userId: UserId, name: StickerSetName, title: String, stickers: List<InputSticker>, needsRepainting: Boolean? = null): Request<Boolean>
fun CreateNewStickerSet(userId: UserId, name: String, title: String, stickers: List<InputSticker>, needsRepainting: Boolean? = null): Request<Boolean>

Will create one of CreateNewStickerSet types based on the first element of stickers

Link copied to clipboard
fun ReplaceStickerInSet(userId: UserId, stickerSetName: StickerSetName, oldSticker: FileId, newSticker: InputSticker): Request<Boolean>
fun ReplaceStickerInSet(userId: UserId, stickerSetName: String, oldSticker: FileId, newSticker: InputSticker): Request<Boolean>
Link copied to clipboard
fun SetStickerSetThumbnail(userId: UserId, stickerSetName: StickerSetName, format: StickerFormat, thumbnail: MultipartFile): Request<Boolean>
fun SetStickerSetThumbnail(userId: UserId, stickerSetName: String, format: StickerFormat, thumbnail: MultipartFile): Request<Boolean>