1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-29 21:48:43 +00:00

fix ChatInviteLinkRequest

This commit is contained in:
InsanusMokrassar 2021-03-11 20:39:33 +06:00
parent e7265829d1
commit 66f7801b32

View File

@ -5,11 +5,11 @@ import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
import dev.inmo.tgbotapi.types.* import dev.inmo.tgbotapi.types.*
import kotlinx.serialization.DeserializationStrategy import kotlinx.serialization.DeserializationStrategy
interface ChatInviteLinkRequest : SimpleRequest<BotInviteLink> { interface ChatInviteLinkRequest : SimpleRequest<CommonInviteLink> {
val chatId: ChatId val chatId: ChatId
override val resultDeserializer: DeserializationStrategy<BotInviteLink> override val resultDeserializer: DeserializationStrategy<CommonInviteLink>
get() = BotInviteLink.serializer() get() = CommonInviteLink.serializer()
} }
interface KnownChatInviteLinkRequest : ChatInviteLinkRequest { interface KnownChatInviteLinkRequest : ChatInviteLinkRequest {
val inviteLink: String val inviteLink: String