mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
fixes in build
This commit is contained in:
parent
225fedde3a
commit
e902f85b36
@ -260,7 +260,7 @@ import dev.inmo.tgbotapi.types.message.CommonSupergroupEventMessage
|
|||||||
import dev.inmo.tgbotapi.types.message.ForwardInfo
|
import dev.inmo.tgbotapi.types.message.ForwardInfo
|
||||||
import dev.inmo.tgbotapi.types.message.PassportMessage
|
import dev.inmo.tgbotapi.types.message.PassportMessage
|
||||||
import dev.inmo.tgbotapi.types.message.PrivateEventMessage
|
import dev.inmo.tgbotapi.types.message.PrivateEventMessage
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.Message
|
import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.AnonymousForumContentMessage
|
import dev.inmo.tgbotapi.types.message.abstracts.AnonymousForumContentMessage
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.AnonymousGroupContentMessage
|
import dev.inmo.tgbotapi.types.message.abstracts.AnonymousGroupContentMessage
|
||||||
import dev.inmo.tgbotapi.types.message.abstracts.ChannelContentMessage
|
import dev.inmo.tgbotapi.types.message.abstracts.ChannelContentMessage
|
||||||
@ -3495,13 +3495,13 @@ public inline fun <T>
|
|||||||
Message.ifCommonForumContentMessage(block: (CommonForumContentMessage<MessageContent>) -> T): T?
|
Message.ifCommonForumContentMessage(block: (CommonForumContentMessage<MessageContent>) -> T): T?
|
||||||
= commonForumContentMessageOrNull() ?.let(block)
|
= commonForumContentMessageOrNull() ?.let(block)
|
||||||
|
|
||||||
public inline fun Message.accessibleMessageOrNull(): Message? = this as?
|
public inline fun Message.accessibleMessageOrNull(): AccessibleMessage? = this as?
|
||||||
dev.inmo.tgbotapi.types.message.abstracts.Message
|
dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
|
||||||
|
|
||||||
public inline fun Message.accessibleMessageOrThrow(): Message = this as
|
public inline fun Message.accessibleMessageOrThrow(): AccessibleMessage = this as
|
||||||
dev.inmo.tgbotapi.types.message.abstracts.Message
|
dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage
|
||||||
|
|
||||||
public inline fun <T> Message.ifMessage(block: (Message) -> T): T? =
|
public inline fun <T> Message.ifAccessibleMessage(block: (AccessibleMessage) -> T): T? =
|
||||||
accessibleMessageOrNull() ?.let(block)
|
accessibleMessageOrNull() ?.let(block)
|
||||||
|
|
||||||
public inline fun Message.inaccessibleMessageOrNull(): InaccessibleMessage? = this as?
|
public inline fun Message.inaccessibleMessageOrNull(): InaccessibleMessage? = this as?
|
||||||
|
Loading…
Reference in New Issue
Block a user