1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-23 00:57:13 +00:00

fixes in replies

This commit is contained in:
InsanusMokrassar 2022-11-08 00:21:16 +06:00
parent b1bba43f29
commit a80ed2ec57
3 changed files with 74 additions and 157 deletions

View File

@ -10,9 +10,9 @@ sealed interface GroupContentMessage<T : MessageContent> : PublicContentMessage<
override val chat: GroupChat
}
sealed interface ForumContentMessage<T : MessageContent> : GroupContentMessage<T> {
sealed interface ForumContentMessage<T : MessageContent> : GroupContentMessage<T>, PossiblyTopicMessage {
override val chat: ForumChat
val threadId: MessageThreadId
override val threadId: MessageThreadId
}

View File

@ -0,0 +1,7 @@
package dev.inmo.tgbotapi.types.message.abstracts
import dev.inmo.tgbotapi.types.MessageThreadId
interface PossiblyTopicMessage : Message {
val threadId: MessageThreadId?
}