mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-03 15:19:30 +00:00
add support of general changes
This commit is contained in:
@@ -1163,6 +1163,14 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
||||
public static final fun channelContentMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/ChannelContentMessage;
|
||||
public static final fun channelContentMessageOrThrow (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/abstracts/ChannelContentMessage;
|
||||
public static final fun channelContentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/ChannelContentMessage;
|
||||
public static final fun channelDirectMessagesConfigurationChangedDisabledOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged$Disabled;
|
||||
public static final fun channelDirectMessagesConfigurationChangedDisabledOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged$Disabled;
|
||||
public static final fun channelDirectMessagesConfigurationChangedFreeOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged$Free;
|
||||
public static final fun channelDirectMessagesConfigurationChangedFreeOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged$Free;
|
||||
public static final fun channelDirectMessagesConfigurationChangedOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged;
|
||||
public static final fun channelDirectMessagesConfigurationChangedOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged;
|
||||
public static final fun channelDirectMessagesConfigurationChangedPaidOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged$Paid;
|
||||
public static final fun channelDirectMessagesConfigurationChangedPaidOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged$Paid;
|
||||
public static final fun channelEventMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/ChannelEventMessage;
|
||||
public static final fun channelEventMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/ChannelEventMessage;
|
||||
public static final fun channelEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelEvent;
|
||||
@@ -1570,6 +1578,10 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
||||
public static final fun ifChannelChatCreated (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||
public static final fun ifChannelContentMessage (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||
public static final fun ifChannelContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||
public static final fun ifChannelDirectMessagesConfigurationChanged (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||
public static final fun ifChannelDirectMessagesConfigurationChangedDisabled (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||
public static final fun ifChannelDirectMessagesConfigurationChangedFree (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||
public static final fun ifChannelDirectMessagesConfigurationChangedPaid (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||
public static final fun ifChannelEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||
public static final fun ifChannelEventMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||
public static final fun ifChannelPostUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||
|
@@ -21,6 +21,7 @@ import dev.inmo.tgbotapi.requests.stickers.InputSticker
|
||||
import dev.inmo.tgbotapi.types.BackgroundFill
|
||||
import dev.inmo.tgbotapi.types.BackgroundType
|
||||
import dev.inmo.tgbotapi.types.BusinessChatId
|
||||
import dev.inmo.tgbotapi.types.ChannelDirectMessagesConfigurationChanged
|
||||
import dev.inmo.tgbotapi.types.ChatId
|
||||
import dev.inmo.tgbotapi.types.ChatIdWithThreadId
|
||||
import dev.inmo.tgbotapi.types.ChatIdentifier
|
||||
@@ -3333,6 +3334,54 @@ public inline fun <T>
|
||||
TelegramMedia.ifWithCustomizableCaptionTelegramMedia(block: (WithCustomizableCaptionTelegramMedia) -> T):
|
||||
T? = withCustomizableCaptionTelegramMediaOrNull() ?.let(block)
|
||||
|
||||
public inline fun ChatEvent.channelDirectMessagesConfigurationChangedOrNull():
|
||||
ChannelDirectMessagesConfigurationChanged? = this as?
|
||||
dev.inmo.tgbotapi.types.ChannelDirectMessagesConfigurationChanged
|
||||
|
||||
public inline fun ChatEvent.channelDirectMessagesConfigurationChangedOrThrow():
|
||||
ChannelDirectMessagesConfigurationChanged = this as
|
||||
dev.inmo.tgbotapi.types.ChannelDirectMessagesConfigurationChanged
|
||||
|
||||
public inline fun <T>
|
||||
ChatEvent.ifChannelDirectMessagesConfigurationChanged(block: (ChannelDirectMessagesConfigurationChanged) -> T):
|
||||
T? = channelDirectMessagesConfigurationChangedOrNull() ?.let(block)
|
||||
|
||||
public inline fun ChatEvent.channelDirectMessagesConfigurationChangedDisabledOrNull():
|
||||
ChannelDirectMessagesConfigurationChanged.Disabled? = this as?
|
||||
dev.inmo.tgbotapi.types.ChannelDirectMessagesConfigurationChanged.Disabled
|
||||
|
||||
public inline fun ChatEvent.channelDirectMessagesConfigurationChangedDisabledOrThrow():
|
||||
ChannelDirectMessagesConfigurationChanged.Disabled = this as
|
||||
dev.inmo.tgbotapi.types.ChannelDirectMessagesConfigurationChanged.Disabled
|
||||
|
||||
public inline fun <T>
|
||||
ChatEvent.ifChannelDirectMessagesConfigurationChangedDisabled(block: (ChannelDirectMessagesConfigurationChanged.Disabled) -> T):
|
||||
T? = channelDirectMessagesConfigurationChangedDisabledOrNull() ?.let(block)
|
||||
|
||||
public inline fun ChatEvent.channelDirectMessagesConfigurationChangedFreeOrNull():
|
||||
ChannelDirectMessagesConfigurationChanged.Free? = this as?
|
||||
dev.inmo.tgbotapi.types.ChannelDirectMessagesConfigurationChanged.Free
|
||||
|
||||
public inline fun ChatEvent.channelDirectMessagesConfigurationChangedFreeOrThrow():
|
||||
ChannelDirectMessagesConfigurationChanged.Free = this as
|
||||
dev.inmo.tgbotapi.types.ChannelDirectMessagesConfigurationChanged.Free
|
||||
|
||||
public inline fun <T>
|
||||
ChatEvent.ifChannelDirectMessagesConfigurationChangedFree(block: (ChannelDirectMessagesConfigurationChanged.Free) -> T):
|
||||
T? = channelDirectMessagesConfigurationChangedFreeOrNull() ?.let(block)
|
||||
|
||||
public inline fun ChatEvent.channelDirectMessagesConfigurationChangedPaidOrNull():
|
||||
ChannelDirectMessagesConfigurationChanged.Paid? = this as?
|
||||
dev.inmo.tgbotapi.types.ChannelDirectMessagesConfigurationChanged.Paid
|
||||
|
||||
public inline fun ChatEvent.channelDirectMessagesConfigurationChangedPaidOrThrow():
|
||||
ChannelDirectMessagesConfigurationChanged.Paid = this as
|
||||
dev.inmo.tgbotapi.types.ChannelDirectMessagesConfigurationChanged.Paid
|
||||
|
||||
public inline fun <T>
|
||||
ChatEvent.ifChannelDirectMessagesConfigurationChangedPaid(block: (ChannelDirectMessagesConfigurationChanged.Paid) -> T):
|
||||
T? = channelDirectMessagesConfigurationChangedPaidOrNull() ?.let(block)
|
||||
|
||||
public inline fun ChatEvent.paidMessagePriceChangedOrNull(): PaidMessagePriceChanged? = this as?
|
||||
dev.inmo.tgbotapi.types.PaidMessagePriceChanged
|
||||
|
||||
|
Reference in New Issue
Block a user