Package-level declarations

Types

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)
interface InputSticker
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 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: String, inputSticker: InputSticker): Request<Boolean>
Link copied to clipboard
fun CreateNewStickerSet(userId: UserId, name: String, title: String, stickersFormat: StickerFormat, 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 SetStickerSetThumbnail(userId: UserId, stickerSetName: String, thumbnail: MultipartFile): Request<Boolean>