mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 03:58:44 +00:00
add ContentMessage#hasProtectedContent
This commit is contained in:
parent
dc89e914a1
commit
1e5ce6bb5c
@ -5,4 +5,7 @@ import dev.inmo.tgbotapi.types.message.content.abstracts.MessageContent
|
|||||||
interface ContentMessage<T: MessageContent>: Message {
|
interface ContentMessage<T: MessageContent>: Message {
|
||||||
val forwardable: Boolean
|
val forwardable: Boolean
|
||||||
val content: T
|
val content: T
|
||||||
|
|
||||||
|
val hasProtectedContent: Boolean
|
||||||
|
get() = forwardable
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user