1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23:48 +00:00

Fix the requestSerializer for SetChatAdministratorCustomTitle

This commit is contained in:
madhead 2023-01-14 00:26:49 +01:00
parent ba53d0c75d
commit 5445fdbfa5
No known key found for this signature in database
GPG Key ID: ACED25F067D0F238

View File

@ -18,7 +18,7 @@ data class SetChatAdministratorCustomTitle(
override val resultDeserializer: DeserializationStrategy<Boolean> override val resultDeserializer: DeserializationStrategy<Boolean>
get() = Boolean.serializer() get() = Boolean.serializer()
override val requestSerializer: SerializationStrategy<*> override val requestSerializer: SerializationStrategy<*>
get() = RestrictChatMember.serializer() get() = serializer()
init { init {
if (customTitle.length !in customTitleLength) { if (customTitle.length !in customTitleLength) {