1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-14 22:05:28 +00:00
tgbotapi/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/abstracts/types/WithReplyParameters.kt

14 lines
392 B
Kotlin
Raw Normal View History

2024-01-07 16:42:46 +00:00
package dev.inmo.tgbotapi.abstracts.types
import dev.inmo.tgbotapi.types.MessageId
import dev.inmo.tgbotapi.types.ReplyParameters
2024-03-16 13:29:10 +00:00
interface WithReplyParameters {
2024-01-07 16:42:46 +00:00
val replyParameters: ReplyParameters?
2024-03-16 13:29:10 +00:00
val replyToMessageId: MessageId?
2024-01-07 16:42:46 +00:00
get() = replyParameters ?.messageId
2024-03-16 13:29:10 +00:00
val allowSendingWithoutReply: Boolean?
2024-01-07 16:42:46 +00:00
get() = replyParameters ?.allowSendingWithoutReply
}