diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt index 085a3deb8b..409c65fd8d 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt @@ -463,6 +463,7 @@ const val inputMessageContentField = "input_message_content" const val hideUrlField = "hide_url" const val botCommandField = "command" +const val botCommandFullField = "bot_command" const val botCommandsField = "commands" const val scopeField = "scope" diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/rich/RichTextEntities.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/rich/RichTextEntities.kt index a54b380dfc..251075be16 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/rich/RichTextEntities.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/rich/RichTextEntities.kt @@ -4,7 +4,7 @@ import dev.inmo.tgbotapi.types.CustomEmojiId import dev.inmo.tgbotapi.types.alternativeTextField import dev.inmo.tgbotapi.types.anchorNameField import dev.inmo.tgbotapi.types.bankCardNumberField -import dev.inmo.tgbotapi.types.botCommandField +import dev.inmo.tgbotapi.types.botCommandFullField import dev.inmo.tgbotapi.types.cashtagField import dev.inmo.tgbotapi.types.chat.User import dev.inmo.tgbotapi.types.customEmojiIdField @@ -436,7 +436,7 @@ data class RichTextCashtag( data class RichTextBotCommand( @SerialName(textField) val text: RichText, - @SerialName(botCommandField) + @SerialName(botCommandFullField) val botCommand: String ) : RichTextEntity { @EncodeDefault