mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
Merge pull request #707 from madhead/bugfix/SetChatAdministratorCustomTitle.serializer()
Fix the `requestSerializer` for `SetChatAdministratorCustomTitle`
This commit is contained in:
commit
9c7faec124
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user