1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-29 04:47:48 +00:00

hotfix for setMyCommands request

This commit is contained in:
InsanusMokrassar 2020-03-30 21:53:36 +06:00
parent ec70813e49
commit 53257ff131

View File

@ -11,7 +11,7 @@ class SetMyCommands(
@SerialName(botCommandsField)
val commands: List<BotCommand>
) : SimpleRequest<Boolean> {
override fun method(): String = "getMyCommands"
override fun method(): String = "setMyCommands"
override val resultDeserializer: DeserializationStrategy<Boolean>
get() = Boolean.serializer()
override val requestSerializer: SerializationStrategy<*>