From 1f2b3b946405b9c6827ad44b15140e1d5dc078ba Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 30 May 2026 12:49:54 +0600 Subject: [PATCH] guest message answers rework --- .../api/tgbotapi.behaviour_builder.api | 9 +- .../expectations/WaitGuestRequestMessage.kt | 17 ++ .../triggers_handling/GuestMessageTriggers.kt | 2 +- tgbotapi.core/api/tgbotapi.core.api | 191 ++++++------------ .../message/AnswerGuestContentMessageImpl.kt | 33 --- .../tgbotapi/types/message/GroupMessages.kt | 12 ++ .../message/PrivateContentMessageImpl.kt | 21 +- .../message/PrivateForumContentMessageImpl.kt | 2 + .../inmo/tgbotapi/types/message/RawMessage.kt | 30 +-- .../message/RequestGuestContentMessageImpl.kt | 1 - .../types/message/abstracts/GroupMessages.kt | 4 +- .../message/abstracts/GuestContentMessage.kt | 13 +- ...ssage.kt => PossiblyGuestAnswerMessage.kt} | 6 +- .../abstracts/PrivateContentMessage.kt | 6 +- .../types/update/GuestMessageUpdate.kt | 3 - .../MediaGroupContentMessageCreator.kt | 24 +-- tgbotapi.utils/api/tgbotapi.utils.api | 18 +- .../extensions/utils/ClassCastsNew.kt | 40 +--- 18 files changed, 166 insertions(+), 266 deletions(-) create mode 100644 tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitGuestRequestMessage.kt delete mode 100644 tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/AnswerGuestContentMessageImpl.kt rename tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/{AnswerGuestMessage.kt => PossiblyGuestAnswerMessage.kt} (53%) diff --git a/tgbotapi.behaviour_builder/api/tgbotapi.behaviour_builder.api b/tgbotapi.behaviour_builder/api/tgbotapi.behaviour_builder.api index 68a8f984c4..c4b5194121 100644 --- a/tgbotapi.behaviour_builder/api/tgbotapi.behaviour_builder.api +++ b/tgbotapi.behaviour_builder/api/tgbotapi.behaviour_builder.api @@ -853,6 +853,11 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/W public static synthetic fun waitWriteAccessAllowedOtherEventsMessages$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow; } +public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitGuestRequestMessageKt { + public static final fun waitGuestRequestMessage (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow; + public static synthetic fun waitGuestRequestMessage$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow; +} + public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitInlineQueryKt { public static final fun waitAnyInlineQuery (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow; public static synthetic fun waitAnyInlineQuery$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/flow/Flow; @@ -1513,8 +1518,8 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handl } public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/GuestMessageTriggersKt { - public static final fun onGuestMessage (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job; - public static synthetic fun onGuestMessage$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job; + public static final fun onGuestRequestMessage (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;)Lkotlinx/coroutines/Job; + public static synthetic fun onGuestRequestMessage$default (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/SimpleFilter;Lkotlin/jvm/functions/Function4;Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function3;ILjava/lang/Object;)Lkotlinx/coroutines/Job; } public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/InlineQueryTriggersKt { diff --git a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitGuestRequestMessage.kt b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitGuestRequestMessage.kt new file mode 100644 index 0000000000..67bcce8614 --- /dev/null +++ b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitGuestRequestMessage.kt @@ -0,0 +1,17 @@ +package dev.inmo.tgbotapi.extensions.behaviour_builder.expectations + +import dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext +import dev.inmo.tgbotapi.extensions.utils.guestMessageUpdateOrNull +import dev.inmo.tgbotapi.requests.abstracts.Request +import dev.inmo.tgbotapi.types.message.abstracts.RequestGuestContentMessage +import kotlinx.coroutines.flow.Flow + +fun BehaviourContext.waitGuestRequestMessage( + initRequest: Request<*>? = null, + errorFactory: NullableRequestBuilder<*> = { null } +): Flow> = expectFlow( + initRequest, + errorFactory +) { + (it.guestMessageUpdateOrNull() ?.data).let(::listOfNotNull) +} diff --git a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/GuestMessageTriggers.kt b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/GuestMessageTriggers.kt index 2b836a2fc4..6b177f184a 100644 --- a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/GuestMessageTriggers.kt +++ b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/GuestMessageTriggers.kt @@ -16,7 +16,7 @@ import dev.inmo.tgbotapi.types.update.abstracts.Update * @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream". * @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that data */ -fun BC.onGuestMessage( +fun BC.onGuestRequestMessage( initialFilter: SimpleFilter>? = null, subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver, Update>? = null, markerFactory: MarkerFactory, Any>? = ByChatMessageMarkerFactory, diff --git a/tgbotapi.core/api/tgbotapi.core.api b/tgbotapi.core/api/tgbotapi.core.api index 19fb89f894..55d6769899 100644 --- a/tgbotapi.core/api/tgbotapi.core.api +++ b/tgbotapi.core/api/tgbotapi.core.api @@ -25118,54 +25118,6 @@ public final class dev/inmo/tgbotapi/types/message/AnonymousGroupContentMessageI public fun toString ()Ljava/lang/String; } -public final class dev/inmo/tgbotapi/types/message/AnswerGuestContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage { - public synthetic fun (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;ZLjava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;ZLjava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1-APLFQys ()J - public final fun component10 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup; - public final fun component11 ()Ldev/inmo/tgbotapi/types/chat/CommonBot; - public final fun component12-CsYhHCU ()Ljava/lang/String; - public final fun component13 ()Ldev/inmo/tgbotapi/types/chat/User; - public final fun component14 ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; - public final fun component15 ()Z - public final fun component16 ()Ljava/lang/Integer; - public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/User; - public final fun component3 ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; - public final fun component4 ()Ldev/inmo/tgbotapi/types/message/content/MessageContent; - public final fun component5-Wg0KzQs ()D - public final fun component6-Ivn3T5g ()Lkorlibs/time/DateTime; - public final fun component7 ()Z - public final fun component8 ()Ldev/inmo/tgbotapi/types/message/MessageOrigin; - public final fun component9 ()Ldev/inmo/tgbotapi/types/ReplyInfo; - public final fun copy-FEh5XE4 (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;ZLjava/lang/Integer;)Ldev/inmo/tgbotapi/types/message/AnswerGuestContentMessageImpl; - public static synthetic fun copy-FEh5XE4$default (Ldev/inmo/tgbotapi/types/message/AnswerGuestContentMessageImpl;JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;ZLjava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/AnswerGuestContentMessageImpl; - public fun equals (Ljava/lang/Object;)Z - public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String; - public fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; - public fun getContent ()Ldev/inmo/tgbotapi/types/message/content/MessageContent; - public fun getCost ()Ljava/lang/Integer; - public fun getDate-Wg0KzQs ()D - public fun getEditDate-Ivn3T5g ()Lkorlibs/time/DateTime; - public fun getForwardInfo ()Ldev/inmo/tgbotapi/types/message/ForwardInfo; - public fun getForwardOrigin ()Ldev/inmo/tgbotapi/types/message/MessageOrigin; - public fun getForwardable ()Z - public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; - public fun getFromOffline ()Z - public fun getGuestBotCallerChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; - public fun getGuestBotCallerUser ()Ldev/inmo/tgbotapi/types/chat/User; - public fun getHasProtectedContent ()Z - public fun getMediaGroupId-CsYhHCU ()Ljava/lang/String; - public fun getMessageId-APLFQys ()J - public fun getMetaInfo-fV8YnZ8 ()Lkotlin/Triple; - public fun getReplyInfo ()Ldev/inmo/tgbotapi/types/ReplyInfo; - public fun getReplyMarkup ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup; - public fun getReplyTo ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public fun getSenderBot ()Ldev/inmo/tgbotapi/types/chat/CommonBot; - public fun getUser ()Ldev/inmo/tgbotapi/types/chat/User; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - public final class dev/inmo/tgbotapi/types/message/BusinessContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/BusinessContentMessage { public synthetic fun (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewBusinessChat;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/ForwardInfo;Ldev/inmo/tgbotapi/types/message/abstracts/AccessibleMessage;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewBot;ZLkotlin/jvm/internal/DefaultConstructorMarker;)V public synthetic fun (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewBusinessChat;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewBot;ZLjava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -26313,19 +26265,21 @@ public final class dev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesEv } public final class dev/inmo/tgbotapi/types/message/CommonForumContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/CommonForumContentMessage { - public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/ForwardInfo;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/abstracts/AccessibleMessage;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/ForwardInfo;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/abstracts/AccessibleMessage;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/ForwardInfo;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/abstracts/AccessibleMessage;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/ForwardInfo;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/abstracts/AccessibleMessage;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/inmo/tgbotapi/types/chat/PreviewForumChat; public final fun component10 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup; public final fun component11 ()Ldev/inmo/tgbotapi/types/message/content/MessageContent; public final fun component12 ()Ldev/inmo/tgbotapi/types/chat/CommonBot; - public final fun component13-CsYhHCU ()Ljava/lang/String; - public final fun component14 ()Ljava/lang/Integer; - public final fun component15 ()Z + public final fun component13 ()Ldev/inmo/tgbotapi/types/chat/User; + public final fun component14 ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public final fun component15-CsYhHCU ()Ljava/lang/String; public final fun component16 ()Ljava/lang/Integer; - public final fun component17-AVO4CDE ()Ljava/lang/String; + public final fun component17 ()Z + public final fun component18 ()Ljava/lang/Integer; + public final fun component19-AVO4CDE ()Ljava/lang/String; public final fun component2-APLFQys ()J public final fun component3-hDmiKeI ()J public final fun component4 ()Ldev/inmo/tgbotapi/types/chat/User; @@ -26334,8 +26288,8 @@ public final class dev/inmo/tgbotapi/types/message/CommonForumContentMessageImpl public final fun component7-Ivn3T5g ()Lkorlibs/time/DateTime; public final fun component8 ()Z public final fun component9 ()Ldev/inmo/tgbotapi/types/ReplyInfo; - public final fun copy-KV_Ri-M (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/message/CommonForumContentMessageImpl; - public static synthetic fun copy-KV_Ri-M$default (Ldev/inmo/tgbotapi/types/message/CommonForumContentMessageImpl;Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/CommonForumContentMessageImpl; + public final fun copy-Kc--1bA (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/message/CommonForumContentMessageImpl; + public static synthetic fun copy-Kc--1bA$default (Ldev/inmo/tgbotapi/types/message/CommonForumContentMessageImpl;Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/CommonForumContentMessageImpl; public fun equals (Ljava/lang/Object;)Z public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String; public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; @@ -26351,6 +26305,8 @@ public final class dev/inmo/tgbotapi/types/message/CommonForumContentMessageImpl public fun getForwardable ()Z public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; public fun getFromOffline ()Z + public fun getGuestBotCallerChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public fun getGuestBotCallerUser ()Ldev/inmo/tgbotapi/types/chat/User; public fun getHasProtectedContent ()Z public fun getMediaGroupId-CsYhHCU ()Ljava/lang/String; public fun getMessageId-APLFQys ()J @@ -26370,18 +26326,20 @@ public final class dev/inmo/tgbotapi/types/message/CommonForumContentMessageImpl } public final class dev/inmo/tgbotapi/types/message/CommonGroupContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/CommonGroupContentMessage { - public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;JLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/ForwardInfo;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/abstracts/AccessibleMessage;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;JLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/ForwardInfo;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/abstracts/AccessibleMessage;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;JLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;JLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;JLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/ForwardInfo;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/abstracts/AccessibleMessage;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;JLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/ForwardInfo;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/abstracts/AccessibleMessage;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;JLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;JLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat; public final fun component10 ()Ldev/inmo/tgbotapi/types/message/content/MessageContent; public final fun component11 ()Ldev/inmo/tgbotapi/types/chat/CommonBot; - public final fun component12-CsYhHCU ()Ljava/lang/String; - public final fun component13 ()Ljava/lang/Integer; - public final fun component14 ()Z + public final fun component12 ()Ldev/inmo/tgbotapi/types/chat/User; + public final fun component13 ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public final fun component14-CsYhHCU ()Ljava/lang/String; public final fun component15 ()Ljava/lang/Integer; - public final fun component16-AVO4CDE ()Ljava/lang/String; + public final fun component16 ()Z + public final fun component17 ()Ljava/lang/Integer; + public final fun component18-AVO4CDE ()Ljava/lang/String; public final fun component2-APLFQys ()J public final fun component3 ()Ldev/inmo/tgbotapi/types/chat/User; public final fun component4-Wg0KzQs ()D @@ -26390,8 +26348,8 @@ public final class dev/inmo/tgbotapi/types/message/CommonGroupContentMessageImpl public final fun component7 ()Z public final fun component8 ()Ldev/inmo/tgbotapi/types/ReplyInfo; public final fun component9 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup; - public final fun copy-2zVoErM (Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;JLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/message/CommonGroupContentMessageImpl; - public static synthetic fun copy-2zVoErM$default (Ldev/inmo/tgbotapi/types/message/CommonGroupContentMessageImpl;Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;JLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/CommonGroupContentMessageImpl; + public final fun copy-OPZVyhA (Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;JLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/message/CommonGroupContentMessageImpl; + public static synthetic fun copy-OPZVyhA$default (Ldev/inmo/tgbotapi/types/message/CommonGroupContentMessageImpl;Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;JLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/message/MessageOrigin;Lkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/message/content/MessageContent;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;Ljava/lang/Integer;ZLjava/lang/Integer;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/CommonGroupContentMessageImpl; public fun equals (Ljava/lang/Object;)Z public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String; public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; @@ -26406,6 +26364,8 @@ public final class dev/inmo/tgbotapi/types/message/CommonGroupContentMessageImpl public fun getForwardable ()Z public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; public fun getFromOffline ()Z + public fun getGuestBotCallerChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public fun getGuestBotCallerUser ()Ldev/inmo/tgbotapi/types/chat/User; public fun getHasProtectedContent ()Z public fun getMediaGroupId-CsYhHCU ()Ljava/lang/String; public fun getMessageId-APLFQys ()J @@ -27088,16 +27048,18 @@ public final class dev/inmo/tgbotapi/types/message/PassportMessage : dev/inmo/tg } public final class dev/inmo/tgbotapi/types/message/PrivateContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/PrivateContentMessage { - public synthetic fun (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/ForwardInfo;Ldev/inmo/tgbotapi/types/message/abstracts/AccessibleMessage;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;ZLjava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/ForwardInfo;Ldev/inmo/tgbotapi/types/message/abstracts/AccessibleMessage;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;ZLjava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1-APLFQys ()J public final fun component10 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup; public final fun component11 ()Ldev/inmo/tgbotapi/types/chat/CommonBot; - public final fun component12-CsYhHCU ()Ljava/lang/String; - public final fun component13 ()Z - public final fun component14-Ts0V7ak ()Ljava/lang/String; - public final fun component15 ()Ljava/lang/Integer; + public final fun component12 ()Ldev/inmo/tgbotapi/types/chat/User; + public final fun component13 ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public final fun component14-CsYhHCU ()Ljava/lang/String; + public final fun component15 ()Z + public final fun component16-Ts0V7ak ()Ljava/lang/String; + public final fun component17 ()Ljava/lang/Integer; public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/User; public final fun component3 ()Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat; public final fun component4 ()Ldev/inmo/tgbotapi/types/message/content/MessageContent; @@ -27106,8 +27068,8 @@ public final class dev/inmo/tgbotapi/types/message/PrivateContentMessageImpl : d public final fun component7 ()Z public final fun component8 ()Ldev/inmo/tgbotapi/types/message/MessageOrigin; public final fun component9 ()Ldev/inmo/tgbotapi/types/ReplyInfo; - public final fun copy-qeOfpsw (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;)Ldev/inmo/tgbotapi/types/message/PrivateContentMessageImpl; - public static synthetic fun copy-qeOfpsw$default (Ldev/inmo/tgbotapi/types/message/PrivateContentMessageImpl;JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/PrivateContentMessageImpl; + public final fun copy-Kw6Z4XE (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;)Ldev/inmo/tgbotapi/types/message/PrivateContentMessageImpl; + public static synthetic fun copy-Kw6Z4XE$default (Ldev/inmo/tgbotapi/types/message/PrivateContentMessageImpl;JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/PrivateContentMessageImpl; public fun equals (Ljava/lang/Object;)Z public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String; public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; @@ -27122,6 +27084,8 @@ public final class dev/inmo/tgbotapi/types/message/PrivateContentMessageImpl : d public fun getForwardable ()Z public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; public fun getFromOffline ()Z + public fun getGuestBotCallerChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public fun getGuestBotCallerUser ()Ldev/inmo/tgbotapi/types/chat/User; public fun getHasProtectedContent ()Z public fun getMediaGroupId-CsYhHCU ()Ljava/lang/String; public fun getMessageId-APLFQys ()J @@ -27157,17 +27121,19 @@ public final class dev/inmo/tgbotapi/types/message/PrivateEventMessage : dev/inm } public final class dev/inmo/tgbotapi/types/message/PrivateForumContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/PrivateForumContentMessage { - public synthetic fun (JJLdev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public synthetic fun (JJLdev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (JJLdev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (JJLdev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1-APLFQys ()J public final fun component10 ()Ldev/inmo/tgbotapi/types/message/MessageOrigin; public final fun component11 ()Ldev/inmo/tgbotapi/types/ReplyInfo; public final fun component12 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup; public final fun component13 ()Ldev/inmo/tgbotapi/types/chat/CommonBot; - public final fun component14-CsYhHCU ()Ljava/lang/String; - public final fun component15 ()Z - public final fun component16-Ts0V7ak ()Ljava/lang/String; - public final fun component17 ()Ljava/lang/Integer; + public final fun component14 ()Ldev/inmo/tgbotapi/types/chat/User; + public final fun component15 ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public final fun component16-CsYhHCU ()Ljava/lang/String; + public final fun component17 ()Z + public final fun component18-Ts0V7ak ()Ljava/lang/String; + public final fun component19 ()Ljava/lang/Integer; public final fun component2-hDmiKeI ()J public final fun component3 ()Ldev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated; public final fun component4 ()Ldev/inmo/tgbotapi/types/chat/User; @@ -27176,8 +27142,8 @@ public final class dev/inmo/tgbotapi/types/message/PrivateForumContentMessageImp public final fun component7-Wg0KzQs ()D public final fun component8-Ivn3T5g ()Lkorlibs/time/DateTime; public final fun component9 ()Z - public final fun copy-aUUcC2o (JJLdev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;)Ldev/inmo/tgbotapi/types/message/PrivateForumContentMessageImpl; - public static synthetic fun copy-aUUcC2o$default (Ldev/inmo/tgbotapi/types/message/PrivateForumContentMessageImpl;JJLdev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/PrivateForumContentMessageImpl; + public final fun copy-0c-Svhw (JJLdev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;)Ldev/inmo/tgbotapi/types/message/PrivateForumContentMessageImpl; + public static synthetic fun copy-0c-Svhw$default (Ldev/inmo/tgbotapi/types/message/PrivateForumContentMessageImpl;JJLdev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Ldev/inmo/tgbotapi/types/message/content/MessageContent;DLkorlibs/time/DateTime;ZLdev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/ReplyInfo;Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;Ldev/inmo/tgbotapi/types/chat/CommonBot;Ldev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChat;Ljava/lang/String;ZLjava/lang/String;Ljava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/PrivateForumContentMessageImpl; public fun equals (Ljava/lang/Object;)Z public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String; public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; @@ -27192,6 +27158,8 @@ public final class dev/inmo/tgbotapi/types/message/PrivateForumContentMessageImp public fun getForwardable ()Z public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; public fun getFromOffline ()Z + public fun getGuestBotCallerChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public fun getGuestBotCallerUser ()Ldev/inmo/tgbotapi/types/chat/User; public fun getHasProtectedContent ()Z public fun getMediaGroupId-CsYhHCU ()Ljava/lang/String; public fun getMessageId-APLFQys ()J @@ -27450,29 +27418,6 @@ public final class dev/inmo/tgbotapi/types/message/abstracts/AnonymousGroupConte public static fun getSenderChat (Ldev/inmo/tgbotapi/types/message/abstracts/AnonymousGroupContentMessage;)Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat; } -public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage : dev/inmo/tgbotapi/types/message/abstracts/AnswerGuestMessage, dev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblySentViaBot { - public abstract fun getSenderBot ()Ldev/inmo/tgbotapi/types/chat/CommonBot; -} - -public final class dev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage$DefaultImpls { - public static fun getBusinessConnectionId-nXr5wdE (Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage;)Ljava/lang/String; - public static fun getForwardInfo (Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage;)Ldev/inmo/tgbotapi/types/message/ForwardInfo; - public static fun getForwardable (Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage;)Z - public static fun getMetaInfo-fV8YnZ8 (Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage;)Lkotlin/Triple; - public static fun getReplyTo (Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage;)Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public static fun getUser (Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage;)Ldev/inmo/tgbotapi/types/chat/User; -} - -public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/AnswerGuestMessage : dev/inmo/tgbotapi/types/message/abstracts/GuestMessage { - public abstract fun getGuestBotCallerChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; - public abstract fun getGuestBotCallerUser ()Ldev/inmo/tgbotapi/types/chat/User; -} - -public final class dev/inmo/tgbotapi/types/message/abstracts/AnswerGuestMessage$DefaultImpls { - public static fun getBusinessConnectionId-nXr5wdE (Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestMessage;)Ljava/lang/String; - public static fun getMetaInfo-fV8YnZ8 (Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestMessage;)Lkotlin/Triple; -} - public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/BusinessContentMessage : dev/inmo/tgbotapi/abstracts/types/WithBusinessConnectionId, dev/inmo/tgbotapi/types/message/abstracts/FromUserMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblySentViaBotCommonMessage { public abstract fun getBusinessConnectionId-T-_HSQI ()Ljava/lang/String; public abstract fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewBusinessChat; @@ -27597,7 +27542,7 @@ public final class dev/inmo/tgbotapi/types/message/abstracts/CommonContentMessag public static fun getReplyTo (Ldev/inmo/tgbotapi/types/message/abstracts/CommonContentMessage;)Ldev/inmo/tgbotapi/types/message/abstracts/Message; } -public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/CommonForumContentMessage : dev/inmo/tgbotapi/types/message/abstracts/ForumContentMessage, dev/inmo/tgbotapi/types/message/abstracts/FromUserMessage, dev/inmo/tgbotapi/types/message/abstracts/PotentiallyFromUserGroupContentMessage { +public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/CommonForumContentMessage : dev/inmo/tgbotapi/types/message/abstracts/ForumContentMessage, dev/inmo/tgbotapi/types/message/abstracts/FromUserMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblyGuestAnswerMessage, dev/inmo/tgbotapi/types/message/abstracts/PotentiallyFromUserGroupContentMessage { } public final class dev/inmo/tgbotapi/types/message/abstracts/CommonForumContentMessage$DefaultImpls { @@ -27610,7 +27555,7 @@ public final class dev/inmo/tgbotapi/types/message/abstracts/CommonForumContentM public static fun getUser (Ldev/inmo/tgbotapi/types/message/abstracts/CommonForumContentMessage;)Ldev/inmo/tgbotapi/types/chat/User; } -public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/CommonGroupContentMessage : dev/inmo/tgbotapi/types/message/abstracts/FromUserMessage, dev/inmo/tgbotapi/types/message/abstracts/GroupContentMessage, dev/inmo/tgbotapi/types/message/abstracts/PotentiallyFromUserGroupContentMessage { +public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/CommonGroupContentMessage : dev/inmo/tgbotapi/types/message/abstracts/FromUserMessage, dev/inmo/tgbotapi/types/message/abstracts/GroupContentMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblyGuestAnswerMessage, dev/inmo/tgbotapi/types/message/abstracts/PotentiallyFromUserGroupContentMessage { } public final class dev/inmo/tgbotapi/types/message/abstracts/CommonGroupContentMessage$DefaultImpls { @@ -27759,18 +27704,6 @@ public final class dev/inmo/tgbotapi/types/message/abstracts/GroupEventMessage$D public static fun getUser (Ldev/inmo/tgbotapi/types/message/abstracts/GroupEventMessage;)Ldev/inmo/tgbotapi/types/chat/User; } -public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage : dev/inmo/tgbotapi/types/message/abstracts/CommonContentMessage, dev/inmo/tgbotapi/types/message/abstracts/FromUserMessage, dev/inmo/tgbotapi/types/message/abstracts/GuestMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblySentViaBot { -} - -public final class dev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage$DefaultImpls { - public static fun getBusinessConnectionId-nXr5wdE (Ldev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage;)Ljava/lang/String; - public static fun getForwardInfo (Ldev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage;)Ldev/inmo/tgbotapi/types/message/ForwardInfo; - public static fun getForwardable (Ldev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage;)Z - public static fun getMetaInfo-fV8YnZ8 (Ldev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage;)Lkotlin/Triple; - public static fun getReplyTo (Ldev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage;)Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public static fun getUser (Ldev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage;)Ldev/inmo/tgbotapi/types/chat/User; -} - public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/GuestMessage : dev/inmo/tgbotapi/types/message/abstracts/Message { } @@ -27898,6 +27831,16 @@ public final class dev/inmo/tgbotapi/types/message/abstracts/PossiblyForwardedMe public static fun getMetaInfo-fV8YnZ8 (Ldev/inmo/tgbotapi/types/message/abstracts/PossiblyForwardedMessage;)Lkotlin/Triple; } +public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/PossiblyGuestAnswerMessage : dev/inmo/tgbotapi/types/message/abstracts/Message { + public abstract fun getGuestBotCallerChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public abstract fun getGuestBotCallerUser ()Ldev/inmo/tgbotapi/types/chat/User; +} + +public final class dev/inmo/tgbotapi/types/message/abstracts/PossiblyGuestAnswerMessage$DefaultImpls { + public static fun getBusinessConnectionId-nXr5wdE (Ldev/inmo/tgbotapi/types/message/abstracts/PossiblyGuestAnswerMessage;)Ljava/lang/String; + public static fun getMetaInfo-fV8YnZ8 (Ldev/inmo/tgbotapi/types/message/abstracts/PossiblyGuestAnswerMessage;)Lkotlin/Triple; +} + public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/PossiblyMarkedUp { public abstract fun getReplyMarkup ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup; } @@ -27994,7 +27937,7 @@ public final class dev/inmo/tgbotapi/types/message/abstracts/PotentiallyFromUser public static fun getReplyTo (Ldev/inmo/tgbotapi/types/message/abstracts/PotentiallyFromUserGroupContentMessage;)Ldev/inmo/tgbotapi/types/message/abstracts/Message; } -public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/PrivateContentMessage : dev/inmo/tgbotapi/types/message/abstracts/FromUserMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblyOfflineMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblySentViaBotCommonMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblyWithEffectMessage { +public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/PrivateContentMessage : dev/inmo/tgbotapi/types/message/abstracts/FromUserMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblyGuestAnswerMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblyOfflineMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblySentViaBotCommonMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblyWithEffectMessage { public abstract fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat; } @@ -28032,7 +27975,7 @@ public final class dev/inmo/tgbotapi/types/message/abstracts/PublicContentMessag public static fun getReplyTo (Ldev/inmo/tgbotapi/types/message/abstracts/PublicContentMessage;)Ldev/inmo/tgbotapi/types/message/abstracts/Message; } -public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/RequestGuestContentMessage : dev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage, dev/inmo/tgbotapi/types/message/abstracts/RequestGuestMessage, dev/inmo/tgbotapi/types/message/abstracts/SpecialMessage { +public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/RequestGuestContentMessage : dev/inmo/tgbotapi/types/message/abstracts/CommonContentMessage, dev/inmo/tgbotapi/types/message/abstracts/FromUserMessage, dev/inmo/tgbotapi/types/message/abstracts/GuestMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblySentViaBot, dev/inmo/tgbotapi/types/message/abstracts/RequestGuestMessage, dev/inmo/tgbotapi/types/message/abstracts/SpecialMessage { } public final class dev/inmo/tgbotapi/types/message/abstracts/RequestGuestContentMessage$DefaultImpls { diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/AnswerGuestContentMessageImpl.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/AnswerGuestContentMessageImpl.kt deleted file mode 100644 index 75601691d5..0000000000 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/AnswerGuestContentMessageImpl.kt +++ /dev/null @@ -1,33 +0,0 @@ -package dev.inmo.tgbotapi.types.message - -import korlibs.time.DateTime -import dev.inmo.tgbotapi.types.* -import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup -import dev.inmo.tgbotapi.types.chat.CommonBot -import dev.inmo.tgbotapi.types.chat.PreviewChat -import dev.inmo.tgbotapi.types.chat.User -import dev.inmo.tgbotapi.types.message.abstracts.AnswerGuestContentMessage -import dev.inmo.tgbotapi.types.message.abstracts.GuestContentMessage -import dev.inmo.tgbotapi.types.message.abstracts.RequestGuestContentMessage -import dev.inmo.tgbotapi.types.message.content.MessageContent -import kotlinx.serialization.SerialName - -data class AnswerGuestContentMessageImpl( - override val messageId: MessageId, - override val from: User, - override val chat: PreviewChat, - override val content: T, - override val date: DateTime, - override val editDate: DateTime?, - override val hasProtectedContent: Boolean, - override val forwardOrigin: MessageOrigin?, - override val replyInfo: ReplyInfo?, - override val replyMarkup: InlineKeyboardMarkup?, - override val senderBot: CommonBot, - override val mediaGroupId: MediaGroupId?, - override val guestBotCallerUser: User, - override val guestBotCallerChat: PreviewChat, - override val fromOffline: Boolean, - @SerialName(paidMessageStarCountField) - override val cost: Int? = null, -) : AnswerGuestContentMessage diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/GroupMessages.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/GroupMessages.kt index 02f6c39675..f8dfe47402 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/GroupMessages.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/GroupMessages.kt @@ -180,6 +180,8 @@ data class CommonGroupContentMessageImpl( override val replyMarkup: InlineKeyboardMarkup?, override val content: T, override val senderBot: CommonBot?, + override val guestBotCallerUser: User?, + override val guestBotCallerChat: PreviewChat?, override val mediaGroupId: MediaGroupId?, override val senderBoostsCount: Int?, override val fromOffline: Boolean, @@ -200,6 +202,8 @@ data class CommonGroupContentMessageImpl( replyMarkup: InlineKeyboardMarkup?, content: T, senderBot: CommonBot?, + guestBotCallerUser: User?, + guestBotCallerChat: PreviewChat?, mediaGroupId: MediaGroupId?, senderBoostsCount: Int?, fromOffline: Boolean, @@ -216,6 +220,8 @@ data class CommonGroupContentMessageImpl( replyMarkup = replyMarkup, content = content, senderBot = senderBot, + guestBotCallerUser = guestBotCallerUser, + guestBotCallerChat = guestBotCallerChat, mediaGroupId = mediaGroupId, senderBoostsCount = senderBoostsCount, fromOffline = fromOffline, @@ -460,6 +466,8 @@ data class CommonForumContentMessageImpl( override val replyMarkup: InlineKeyboardMarkup?, override val content: T, override val senderBot: CommonBot?, + override val guestBotCallerUser: User?, + override val guestBotCallerChat: PreviewChat?, override val mediaGroupId: MediaGroupId?, override val senderBoostsCount: Int?, override val fromOffline: Boolean, @@ -481,6 +489,8 @@ data class CommonForumContentMessageImpl( replyMarkup: InlineKeyboardMarkup?, content: T, senderBot: CommonBot?, + guestBotCallerUser: User?, + guestBotCallerChat: PreviewChat?, mediaGroupId: MediaGroupId?, senderBoostsCount: Int?, fromOffline: Boolean, @@ -498,6 +508,8 @@ data class CommonForumContentMessageImpl( replyMarkup = replyMarkup, content = content, senderBot = senderBot, + guestBotCallerUser = guestBotCallerUser, + guestBotCallerChat = guestBotCallerChat, mediaGroupId = mediaGroupId, senderBoostsCount = senderBoostsCount, fromOffline = fromOffline, diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/PrivateContentMessageImpl.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/PrivateContentMessageImpl.kt index 3fc2eadcd7..61b0d7b0bc 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/PrivateContentMessageImpl.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/PrivateContentMessageImpl.kt @@ -23,6 +23,8 @@ data class PrivateContentMessageImpl( override val replyInfo: ReplyInfo?, override val replyMarkup: InlineKeyboardMarkup?, override val senderBot: CommonBot?, + override val guestBotCallerUser: User?, + override val guestBotCallerChat: PreviewChat?, override val mediaGroupId: MediaGroupId?, override val fromOffline: Boolean, override val effectId: EffectId?, @@ -41,10 +43,27 @@ data class PrivateContentMessageImpl( replyTo: AccessibleMessage?, replyMarkup: InlineKeyboardMarkup?, senderBot: CommonBot?, + guestBotCallerUser: User?, + guestBotCallerChat: PreviewChat?, mediaGroupId: MediaGroupId?, fromOffline: Boolean, effectId: EffectId, ) : this( - messageId, from, chat, content, date, editDate, hasProtectedContent, forwardInfo.messageOrigin(), replyTo ?.let { ReplyInfo.Internal(it) }, replyMarkup, senderBot, mediaGroupId, fromOffline, effectId + messageId = messageId, + from = from, + chat = chat, + content = content, + date = date, + editDate = editDate, + hasProtectedContent = hasProtectedContent, + forwardOrigin = forwardInfo.messageOrigin(), + replyInfo = replyTo ?.let { ReplyInfo.Internal(it) }, + replyMarkup = replyMarkup, + senderBot = senderBot, + guestBotCallerUser = guestBotCallerUser, + guestBotCallerChat = guestBotCallerChat, + mediaGroupId = mediaGroupId, + fromOffline = fromOffline, + effectId = effectId ) } diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/PrivateForumContentMessageImpl.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/PrivateForumContentMessageImpl.kt index 84668bc749..1b98cbda9b 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/PrivateForumContentMessageImpl.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/PrivateForumContentMessageImpl.kt @@ -27,6 +27,8 @@ data class PrivateForumContentMessageImpl( override val replyInfo: ReplyInfo?, override val replyMarkup: InlineKeyboardMarkup?, override val senderBot: CommonBot?, + override val guestBotCallerUser: User?, + override val guestBotCallerChat: PreviewChat?, override val mediaGroupId: MediaGroupId?, override val fromOffline: Boolean, override val effectId: EffectId?, diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/RawMessage.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/RawMessage.kt index 3aa628a6bb..379df3a347 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/RawMessage.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/RawMessage.kt @@ -476,26 +476,6 @@ internal data class RawMessage( cost = paid_star_count, ) } - (guest_bot_caller_user ?: guest_bot_caller_chat) != null -> { - AnswerGuestContentMessageImpl( - messageId = messageId, - from = checkedFrom ?: from ?: error("Was detected guest message, but owner (sender) of the message was not found"), - chat = chat, - content = content, - date = date.asDate, - editDate = edit_date?.asDate, - hasProtectedContent = has_protected_content == true, - forwardOrigin = forward_origin, - replyInfo = replyInfo, - replyMarkup = reply_markup, - senderBot = via_bot ?: error("For guest answers sender bot must be presented"), - mediaGroupId = media_group_id, - guestBotCallerUser = guest_bot_caller_user ?: error("For guest content message it is required to have user which called the bot"), - guestBotCallerChat = guest_bot_caller_chat ?: error("For guest content message it is required to have chat in that called the bot"), - fromOffline = is_from_offline, - cost = paid_star_count, - ) - } else -> { when (chat) { is PreviewChannelDirectMessagesChat -> { @@ -693,6 +673,8 @@ internal data class RawMessage( replyMarkup = reply_markup, content = content, senderBot = via_bot, + guestBotCallerUser = guest_bot_caller_user, + guestBotCallerChat = guest_bot_caller_chat, mediaGroupId = media_group_id, senderBoostsCount = sender_boost_count, fromOffline = is_from_offline, @@ -767,6 +749,8 @@ internal data class RawMessage( replyMarkup = reply_markup, content = content, senderBot = via_bot, + guestBotCallerUser = guest_bot_caller_user, + guestBotCallerChat = guest_bot_caller_chat, mediaGroupId = media_group_id, senderBoostsCount = sender_boost_count, fromOffline = is_from_offline, @@ -843,6 +827,8 @@ internal data class RawMessage( replyMarkup = reply_markup, content = content, senderBot = via_bot, + guestBotCallerUser = guest_bot_caller_user, + guestBotCallerChat = guest_bot_caller_chat, mediaGroupId = media_group_id, senderBoostsCount = sender_boost_count, fromOffline = is_from_offline, @@ -883,6 +869,8 @@ internal data class RawMessage( replyInfo = replyInfo, replyMarkup = reply_markup, senderBot = via_bot, + guestBotCallerUser = guest_bot_caller_user, + guestBotCallerChat = guest_bot_caller_chat, mediaGroupId = media_group_id, fromOffline = is_from_offline, effectId = effect_id, @@ -903,6 +891,8 @@ internal data class RawMessage( replyInfo = replyInfo, replyMarkup = reply_markup, senderBot = via_bot, + guestBotCallerUser = guest_bot_caller_user, + guestBotCallerChat = guest_bot_caller_chat, mediaGroupId = media_group_id, fromOffline = is_from_offline, effectId = effect_id, diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/RequestGuestContentMessageImpl.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/RequestGuestContentMessageImpl.kt index c8997d317d..116537b37d 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/RequestGuestContentMessageImpl.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/RequestGuestContentMessageImpl.kt @@ -6,7 +6,6 @@ import dev.inmo.tgbotapi.types.buttons.InlineKeyboardMarkup import dev.inmo.tgbotapi.types.chat.CommonBot import dev.inmo.tgbotapi.types.chat.PreviewChat import dev.inmo.tgbotapi.types.chat.User -import dev.inmo.tgbotapi.types.message.abstracts.GuestContentMessage import dev.inmo.tgbotapi.types.message.abstracts.RequestGuestContentMessage import dev.inmo.tgbotapi.types.message.content.MessageContent import kotlinx.serialization.SerialName diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/GroupMessages.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/GroupMessages.kt index a2528637ce..d71ed90de2 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/GroupMessages.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/GroupMessages.kt @@ -49,7 +49,7 @@ interface AnonymousGroupContentMessage : GroupContentMessage get() = chat } -interface CommonGroupContentMessage : GroupContentMessage, PotentiallyFromUserGroupContentMessage, FromUserMessage +interface CommonGroupContentMessage : GroupContentMessage, PotentiallyFromUserGroupContentMessage, FromUserMessage, PossiblyGuestAnswerMessage interface FromChannelForumContentMessage : FromChannelGroupContentMessage, ForumContentMessage @@ -62,7 +62,7 @@ interface AnonymousForumContentMessage : ForumContentMessage get() = chat } -interface CommonForumContentMessage : ForumContentMessage, PotentiallyFromUserGroupContentMessage, FromUserMessage +interface CommonForumContentMessage : ForumContentMessage, PotentiallyFromUserGroupContentMessage, FromUserMessage, PossiblyGuestAnswerMessage interface CommonChannelDirectMessagesContentMessage : ChannelDirectMessagesContentMessage, PotentiallyFromUserGroupContentMessage, FromUserMessage diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage.kt index 59a15ebbe4..f26f6bea18 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage.kt @@ -4,14 +4,9 @@ import dev.inmo.tgbotapi.types.GuestQueryId import dev.inmo.tgbotapi.types.chat.CommonBot import dev.inmo.tgbotapi.types.message.content.MessageContent -sealed interface GuestContentMessage : CommonContentMessage, +interface RequestGuestContentMessage : CommonContentMessage, + RequestGuestMessage, + SpecialMessage, GuestMessage, FromUserMessage, - PossiblySentViaBot { -} - -interface AnswerGuestContentMessage : GuestContentMessage, AnswerGuestMessage, PossiblySentViaBot { - override val senderBot: CommonBot -} - -interface RequestGuestContentMessage : GuestContentMessage, RequestGuestMessage, SpecialMessage + PossiblySentViaBot diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/AnswerGuestMessage.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/PossiblyGuestAnswerMessage.kt similarity index 53% rename from tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/AnswerGuestMessage.kt rename to tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/PossiblyGuestAnswerMessage.kt index d1a680f070..61ebc7916c 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/AnswerGuestMessage.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/PossiblyGuestAnswerMessage.kt @@ -3,7 +3,7 @@ package dev.inmo.tgbotapi.types.message.abstracts import dev.inmo.tgbotapi.types.chat.PreviewChat import dev.inmo.tgbotapi.types.chat.User -interface AnswerGuestMessage : GuestMessage { - val guestBotCallerUser: User - val guestBotCallerChat: PreviewChat +interface PossiblyGuestAnswerMessage : Message { + val guestBotCallerUser: User? + val guestBotCallerChat: PreviewChat? } \ No newline at end of file diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/PrivateContentMessage.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/PrivateContentMessage.kt index 4680553526..e00b94e436 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/PrivateContentMessage.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/PrivateContentMessage.kt @@ -3,6 +3,10 @@ package dev.inmo.tgbotapi.types.message.abstracts import dev.inmo.tgbotapi.types.chat.PreviewPrivateChat import dev.inmo.tgbotapi.types.message.content.MessageContent -interface PrivateContentMessage : PossiblySentViaBotCommonMessage, FromUserMessage, PossiblyOfflineMessage, PossiblyWithEffectMessage { +interface PrivateContentMessage : PossiblySentViaBotCommonMessage, + FromUserMessage, + PossiblyOfflineMessage, + PossiblyWithEffectMessage, + PossiblyGuestAnswerMessage { override val chat: PreviewPrivateChat } diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/update/GuestMessageUpdate.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/update/GuestMessageUpdate.kt index 19c0ef7330..76cc3d9d0c 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/update/GuestMessageUpdate.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/update/GuestMessageUpdate.kt @@ -2,9 +2,6 @@ package dev.inmo.tgbotapi.types.update import dev.inmo.tgbotapi.types.UpdateId import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage -import dev.inmo.tgbotapi.types.message.abstracts.CommonContentMessage -import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage -import dev.inmo.tgbotapi.types.message.abstracts.GuestContentMessage import dev.inmo.tgbotapi.types.message.abstracts.RequestGuestContentMessage import dev.inmo.tgbotapi.types.update.abstracts.BaseSentMessageUpdate diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/extensions/MediaGroupContentMessageCreator.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/extensions/MediaGroupContentMessageCreator.kt index 086246bec3..72206df637 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/extensions/MediaGroupContentMessageCreator.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/extensions/MediaGroupContentMessageCreator.kt @@ -62,6 +62,8 @@ fun List>.asMediaGroupMessag replyInfo = sourceMessage.replyInfo, replyMarkup = sourceMessage.replyMarkup, senderBot = sourceMessage.senderBot, + guestBotCallerUser = sourceMessage.guestBotCallerUser, + guestBotCallerChat = sourceMessage.guestBotCallerChat, mediaGroupId = sourceMessage.mediaGroupId, fromOffline = sourceMessage.fromOffline, effectId = sourceMessage.effectId, @@ -95,6 +97,8 @@ fun List>.asMediaGroupMessag replyMarkup = sourceMessage.replyMarkup, content = content, senderBot = sourceMessage.senderBot, + guestBotCallerUser = sourceMessage.guestBotCallerUser, + guestBotCallerChat = sourceMessage.guestBotCallerChat, mediaGroupId = sourceMessage.mediaGroupId, senderBoostsCount = sourceMessage.senderBoostsCount, fromOffline = sourceMessage.fromOffline, @@ -165,6 +169,8 @@ fun List>.asMediaGroupMessag replyMarkup = sourceMessage.replyMarkup, content = content, senderBot = sourceMessage.senderBot, + guestBotCallerUser = sourceMessage.guestBotCallerUser, + guestBotCallerChat = sourceMessage.guestBotCallerChat, mediaGroupId = sourceMessage.mediaGroupId, senderBoostsCount = sourceMessage.senderBoostsCount, fromOffline = sourceMessage.fromOffline, @@ -284,23 +290,5 @@ fun List>.asMediaGroupMessag fromOffline = sourceMessage.fromOffline, cost = sourceMessage.cost, ) - is AnswerGuestContentMessage -> AnswerGuestContentMessageImpl( - messageId = sourceMessage.messageId, - from = sourceMessage.user, - chat = sourceMessage.chat, - content = content, - date = sourceMessage.date, - editDate = sourceMessage.editDate, - hasProtectedContent = sourceMessage.hasProtectedContent, - forwardOrigin = sourceMessage.forwardOrigin, - replyInfo = sourceMessage.replyInfo, - replyMarkup = sourceMessage.replyMarkup, - senderBot = sourceMessage.senderBot, - mediaGroupId = sourceMessage.mediaGroupId, - guestBotCallerUser = sourceMessage.guestBotCallerUser, - guestBotCallerChat = sourceMessage.guestBotCallerChat, - fromOffline = sourceMessage.fromOffline, - cost = sourceMessage.cost, - ) } } diff --git a/tgbotapi.utils/api/tgbotapi.utils.api b/tgbotapi.utils/api/tgbotapi.utils.api index 6d5f78a665..e314047d1a 100644 --- a/tgbotapi.utils/api/tgbotapi.utils.api +++ b/tgbotapi.utils/api/tgbotapi.utils.api @@ -1092,12 +1092,6 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun anonymousForumContentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/AnonymousForumContentMessage; public static final fun anonymousGroupContentMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/AnonymousGroupContentMessage; public static final fun anonymousGroupContentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/AnonymousGroupContentMessage; - public static final fun answerGuestContentMessageOrNull (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage; - public static final fun answerGuestContentMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage; - public static final fun answerGuestContentMessageOrThrow (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage; - public static final fun answerGuestContentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestContentMessage; - public static final fun answerGuestMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestMessage; - public static final fun answerGuestMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/AnswerGuestMessage; public static final fun anyOrNull (Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers;)Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers$Any; public static final fun anyOrThrow (Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers;)Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers$Any; public static final fun approximateScheduledCloseInfoOrNull (Ldev/inmo/tgbotapi/types/polls/ScheduledCloseInfo;)Ldev/inmo/tgbotapi/types/polls/ApproximateScheduledCloseInfo; @@ -1578,10 +1572,6 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun groupEventMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/GroupEventMessage; public static final fun groupEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/GroupEvent; public static final fun groupEventOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/GroupEvent; - public static final fun guestContentMessageOrNull (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage; - public static final fun guestContentMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage; - public static final fun guestContentMessageOrThrow (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage; - public static final fun guestContentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/GuestContentMessage; public static final fun guestMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/GuestMessage; public static final fun guestMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/GuestMessage; public static final fun guestMessageUpdateOrNull (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/GuestMessageUpdate; @@ -1609,9 +1599,6 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun ifAnimationFile (Ldev/inmo/tgbotapi/types/media/BaseTelegramMediaFile;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifAnonymousForumContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifAnonymousGroupContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; - public static final fun ifAnswerGuestContentMessage (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; - public static final fun ifAnswerGuestContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; - public static final fun ifAnswerGuestMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifAny (Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifApproximateScheduledCloseInfo (Ldev/inmo/tgbotapi/types/polls/ScheduledCloseInfo;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifAudioContent (Ldev/inmo/tgbotapi/types/message/content/ResendableContent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; @@ -1852,8 +1839,6 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun ifGroupEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifGroupEventMessage (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifGroupEventMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; - public static final fun ifGuestContentMessage (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; - public static final fun ifGuestContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifGuestMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifGuestMessageUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifHashTagTextSource (Ldev/inmo/tgbotapi/types/message/textsources/TextSource;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; @@ -2008,6 +1993,7 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun ifPollUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifPossiblyEditedMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifPossiblyForwardedMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifPossiblyGuestAnswerMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifPossiblyMediaGroupMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifPossiblyOfflineMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifPossiblyPaidMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; @@ -2538,6 +2524,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun possiblyEditedMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/PossiblyEditedMessage; public static final fun possiblyForwardedMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/PossiblyForwardedMessage; public static final fun possiblyForwardedMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/PossiblyForwardedMessage; + public static final fun possiblyGuestAnswerMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/PossiblyGuestAnswerMessage; + public static final fun possiblyGuestAnswerMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/PossiblyGuestAnswerMessage; public static final fun possiblyMediaGroupMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/PossiblyMediaGroupMessage; public static final fun possiblyMediaGroupMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/PossiblyMediaGroupMessage; public static final fun possiblyOfflineMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/PossiblyOfflineMessage; diff --git a/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/ClassCastsNew.kt b/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/ClassCastsNew.kt index 80051f1606..94a7cd2ca9 100644 --- a/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/ClassCastsNew.kt +++ b/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/ClassCastsNew.kt @@ -325,8 +325,6 @@ import dev.inmo.tgbotapi.types.message.PrivateForumEventMessage import dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage import dev.inmo.tgbotapi.types.message.abstracts.AnonymousForumContentMessage import dev.inmo.tgbotapi.types.message.abstracts.AnonymousGroupContentMessage -import dev.inmo.tgbotapi.types.message.abstracts.AnswerGuestContentMessage -import dev.inmo.tgbotapi.types.message.abstracts.AnswerGuestMessage import dev.inmo.tgbotapi.types.message.abstracts.BusinessContentMessage import dev.inmo.tgbotapi.types.message.abstracts.ChannelContentMessage import dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesContentMessage @@ -350,13 +348,13 @@ import dev.inmo.tgbotapi.types.message.abstracts.FromChannelSuggestedChannelDire import dev.inmo.tgbotapi.types.message.abstracts.FromUserMessage import dev.inmo.tgbotapi.types.message.abstracts.GroupContentMessage import dev.inmo.tgbotapi.types.message.abstracts.GroupEventMessage -import dev.inmo.tgbotapi.types.message.abstracts.GuestContentMessage import dev.inmo.tgbotapi.types.message.abstracts.GuestMessage import dev.inmo.tgbotapi.types.message.abstracts.InaccessibleMessage import dev.inmo.tgbotapi.types.message.abstracts.Message import dev.inmo.tgbotapi.types.message.abstracts.OptionallyFromUserMessage import dev.inmo.tgbotapi.types.message.abstracts.PossiblyEditedMessage import dev.inmo.tgbotapi.types.message.abstracts.PossiblyForwardedMessage +import dev.inmo.tgbotapi.types.message.abstracts.PossiblyGuestAnswerMessage import dev.inmo.tgbotapi.types.message.abstracts.PossiblyMediaGroupMessage import dev.inmo.tgbotapi.types.message.abstracts.PossiblyOfflineMessage import dev.inmo.tgbotapi.types.message.abstracts.PossiblyPaidMessage @@ -851,18 +849,6 @@ public inline fun OptionallyWithUser.channelContentMessageOrThrow(): ChannelCont public inline fun OptionallyWithUser.ifChannelContentMessage(block: (ChannelContentMessage) -> T): T? = channelContentMessageOrNull() ?.let(block) -public inline fun OptionallyWithUser.guestContentMessageOrNull(): GuestContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.GuestContentMessage - -public inline fun OptionallyWithUser.guestContentMessageOrThrow(): GuestContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.GuestContentMessage - -public inline fun OptionallyWithUser.ifGuestContentMessage(block: (GuestContentMessage) -> T): T? = guestContentMessageOrNull() ?.let(block) - -public inline fun OptionallyWithUser.answerGuestContentMessageOrNull(): AnswerGuestContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.AnswerGuestContentMessage - -public inline fun OptionallyWithUser.answerGuestContentMessageOrThrow(): AnswerGuestContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.AnswerGuestContentMessage - -public inline fun OptionallyWithUser.ifAnswerGuestContentMessage(block: (AnswerGuestContentMessage) -> T): T? = answerGuestContentMessageOrNull() ?.let(block) - public inline fun OptionallyWithUser.requestGuestContentMessageOrNull(): RequestGuestContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.RequestGuestContentMessage public inline fun OptionallyWithUser.requestGuestContentMessageOrThrow(): RequestGuestContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.RequestGuestContentMessage @@ -2219,12 +2205,6 @@ public inline fun Message.possiblyOfflineMessageOrThrow(): PossiblyOfflineMessag public inline fun Message.ifPossiblyOfflineMessage(block: (PossiblyOfflineMessage) -> T): T? = possiblyOfflineMessageOrNull() ?.let(block) -public inline fun Message.answerGuestMessageOrNull(): AnswerGuestMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.AnswerGuestMessage - -public inline fun Message.answerGuestMessageOrThrow(): AnswerGuestMessage = this as dev.inmo.tgbotapi.types.message.abstracts.AnswerGuestMessage - -public inline fun Message.ifAnswerGuestMessage(block: (AnswerGuestMessage) -> T): T? = answerGuestMessageOrNull() ?.let(block) - public inline fun Message.businessContentMessageOrNull(): BusinessContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.BusinessContentMessage public inline fun Message.businessContentMessageOrThrow(): BusinessContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.BusinessContentMessage @@ -2369,18 +2349,6 @@ public inline fun Message.channelContentMessageOrThrow(): ChannelContentMessage< public inline fun Message.ifChannelContentMessage(block: (ChannelContentMessage) -> T): T? = channelContentMessageOrNull() ?.let(block) -public inline fun Message.guestContentMessageOrNull(): GuestContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.GuestContentMessage - -public inline fun Message.guestContentMessageOrThrow(): GuestContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.GuestContentMessage - -public inline fun Message.ifGuestContentMessage(block: (GuestContentMessage) -> T): T? = guestContentMessageOrNull() ?.let(block) - -public inline fun Message.answerGuestContentMessageOrNull(): AnswerGuestContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.AnswerGuestContentMessage - -public inline fun Message.answerGuestContentMessageOrThrow(): AnswerGuestContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.AnswerGuestContentMessage - -public inline fun Message.ifAnswerGuestContentMessage(block: (AnswerGuestContentMessage) -> T): T? = answerGuestContentMessageOrNull() ?.let(block) - public inline fun Message.requestGuestContentMessageOrNull(): RequestGuestContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.RequestGuestContentMessage public inline fun Message.requestGuestContentMessageOrThrow(): RequestGuestContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.RequestGuestContentMessage @@ -2465,6 +2433,12 @@ public inline fun Message.publicContentMessageOrThrow(): PublicContentMessage Message.ifPublicContentMessage(block: (PublicContentMessage) -> T): T? = publicContentMessageOrNull() ?.let(block) +public inline fun Message.possiblyGuestAnswerMessageOrNull(): PossiblyGuestAnswerMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.PossiblyGuestAnswerMessage + +public inline fun Message.possiblyGuestAnswerMessageOrThrow(): PossiblyGuestAnswerMessage = this as dev.inmo.tgbotapi.types.message.abstracts.PossiblyGuestAnswerMessage + +public inline fun Message.ifPossiblyGuestAnswerMessage(block: (PossiblyGuestAnswerMessage) -> T): T? = possiblyGuestAnswerMessageOrNull() ?.let(block) + public inline fun Message.commonContentMessageOrNull(): CommonContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.CommonContentMessage public inline fun Message.commonContentMessageOrThrow(): CommonContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.CommonContentMessage