2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.requests.chat
|
|
|
|
|
2019-02-07 03:25:49 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.types.ChatRequest
|
2019-02-07 12:25:04 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.SimpleRequest
|
2018-12-26 08:07:24 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.ChatIdentifier
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.chatIdField
|
|
|
|
import kotlinx.serialization.*
|
|
|
|
import kotlinx.serialization.internal.StringSerializer
|
|
|
|
|
|
|
|
@Serializable
|
|
|
|
data class ExportChatInviteLink(
|
|
|
|
@SerialName(chatIdField)
|
|
|
|
override val chatId: ChatIdentifier
|
|
|
|
): ChatRequest, SimpleRequest<String> {
|
|
|
|
override fun method(): String = "exportChatInviteLink"
|
2019-08-17 05:50:46 +00:00
|
|
|
override fun resultDeserializer(): KSerializer<String> = StringSerializer
|
2018-12-26 08:07:24 +00:00
|
|
|
}
|