2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.requests.get
|
|
|
|
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.SimpleRequest
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.stickerSetNameField
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.stickers.StickerSet
|
2019-01-17 02:43:51 +00:00
|
|
|
import kotlinx.serialization.*
|
2018-12-26 08:07:24 +00:00
|
|
|
|
|
|
|
@Serializable
|
|
|
|
data class GetStickerSet(
|
|
|
|
@SerialName(stickerSetNameField)
|
|
|
|
val name: String
|
|
|
|
): SimpleRequest<StickerSet> {
|
|
|
|
override fun method(): String = "getStickerSet"
|
|
|
|
override fun resultSerializer(): KSerializer<StickerSet> = StickerSet.serializer()
|
|
|
|
}
|