1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 08:13:47 +00:00

fix CustomBotAction annotations

This commit is contained in:
InsanusMokrassar 2021-09-17 16:50:41 +06:00
parent fcccbe3252
commit 53a3e11836

View File

@ -1,5 +1,6 @@
package dev.inmo.tgbotapi.types.actions
import dev.inmo.micro_utils.common.Warning
import dev.inmo.tgbotapi.utils.RiskFeature
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializable
@ -151,5 +152,7 @@ inline val uploadVideoNote
inline fun BotAction.asUploadVideoNote() = this as? UploadVideoNoteAction
@Serializable(BotActionSerializer::class)
@RiskFeature("Usage of this action may lead to errors")
class CustomBotAction(override val actionName: String) : BotAction
@Warning("Use this action only in case you are pretty sure that there are no other action for your needs")
class CustomBotAction @RiskFeature("Usage of this action may lead to errors") constructor(
override val actionName: String
) : BotAction