diff --git a/tgbotapi.behaviour_builder/api/tgbotapi.behaviour_builder.api b/tgbotapi.behaviour_builder/api/tgbotapi.behaviour_builder.api index b14b50bd07..276b69fbd0 100644 --- a/tgbotapi.behaviour_builder/api/tgbotapi.behaviour_builder.api +++ b/tgbotapi.behaviour_builder/api/tgbotapi.behaviour_builder.api @@ -692,6 +692,18 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/W public static synthetic fun waitRegularGiftSentOrReceived$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 static final fun waitSuccessfulPaymentEvents (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 waitSuccessfulPaymentEvents$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 static final fun waitSuggestedPostApprovalFailed (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 waitSuggestedPostApprovalFailed$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 static final fun waitSuggestedPostApproved (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 waitSuggestedPostApproved$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 static final fun waitSuggestedPostDeclined (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 waitSuggestedPostDeclined$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 static final fun waitSuggestedPostInfo (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 waitSuggestedPostInfo$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 static final fun waitSuggestedPostPaid (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 waitSuggestedPostPaid$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 static final fun waitSuggestedPostRefunded (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 waitSuggestedPostRefunded$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 static final fun waitSupergroupChatCreatedEvents (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 waitSupergroupChatCreatedEvents$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 static final fun waitSupergroupEvents (Ldev/inmo/tgbotapi/extensions/behaviour_builder/BehaviourContext;Ldev/inmo/tgbotapi/requests/abstracts/Request;Lkotlin/jvm/functions/Function2;)Lkotlinx/coroutines/flow/Flow; @@ -1408,6 +1420,18 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handl public static synthetic fun onRegularGiftSentOrReceived$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 onSuccessfulPayment (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 onSuccessfulPayment$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 onSuggestedPostApprovalFailed (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 onSuggestedPostApprovalFailed$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 onSuggestedPostApproved (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 onSuggestedPostApproved$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 onSuggestedPostDeclined (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 onSuggestedPostDeclined$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 onSuggestedPostInfo (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 onSuggestedPostInfo$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 onSuggestedPostPaid (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 onSuggestedPostPaid$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 onSuggestedPostRefunded (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 onSuggestedPostRefunded$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 onSupergroupChatCreated (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 onSupergroupChatCreated$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 onSupergroupEvent (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; diff --git a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitEventAction.kt b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitEventAction.kt index 5a92978f4d..9abfdaf6a5 100644 --- a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitEventAction.kt +++ b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitEventAction.kt @@ -22,6 +22,12 @@ import dev.inmo.tgbotapi.types.message.ChatEvents.forum.ForumTopicReopened import dev.inmo.tgbotapi.types.message.ChatEvents.forum.GeneralForumTopicHidden import dev.inmo.tgbotapi.types.message.ChatEvents.forum.GeneralForumTopicUnhidden import dev.inmo.tgbotapi.types.message.ChatEvents.forum.WriteAccessAllowed +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostApprovalFailed +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostApproved +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostDeclined +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostInfo +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostPaid +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostRefunded import dev.inmo.tgbotapi.types.message.ChatEvents.voice.* import dev.inmo.tgbotapi.types.message.abstracts.ChatEventMessage import dev.inmo.tgbotapi.types.message.payments.RefundedPaymentEvent @@ -282,3 +288,33 @@ fun BehaviourContext.waitChannelDirectMessagesConfigurationChanged( initRequest: Request<*>? = null, errorFactory: NullableRequestBuilder<*> = { null } ) = waitEvents(initRequest, errorFactory) + +fun BehaviourContext.waitSuggestedPostApprovalFailed( + initRequest: Request<*>? = null, + errorFactory: NullableRequestBuilder<*> = { null } +) = waitEvents(initRequest, errorFactory) + +fun BehaviourContext.waitSuggestedPostRefunded( + initRequest: Request<*>? = null, + errorFactory: NullableRequestBuilder<*> = { null } +) = waitEvents(initRequest, errorFactory) + +fun BehaviourContext.waitSuggestedPostDeclined( + initRequest: Request<*>? = null, + errorFactory: NullableRequestBuilder<*> = { null } +) = waitEvents(initRequest, errorFactory) + +fun BehaviourContext.waitSuggestedPostPaid( + initRequest: Request<*>? = null, + errorFactory: NullableRequestBuilder<*> = { null } +) = waitEvents(initRequest, errorFactory) + +fun BehaviourContext.waitSuggestedPostApproved( + initRequest: Request<*>? = null, + errorFactory: NullableRequestBuilder<*> = { null } +) = waitEvents(initRequest, errorFactory) + +fun BehaviourContext.waitSuggestedPostInfo( + initRequest: Request<*>? = null, + errorFactory: NullableRequestBuilder<*> = { null } +) = waitEvents(initRequest, errorFactory) diff --git a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/EventTriggers.kt b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/EventTriggers.kt index 543de9833d..96c966e084 100644 --- a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/EventTriggers.kt +++ b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/triggers_handling/EventTriggers.kt @@ -28,12 +28,20 @@ import dev.inmo.tgbotapi.types.message.ChatEvents.forum.ForumTopicReopened import dev.inmo.tgbotapi.types.message.ChatEvents.forum.GeneralForumTopicHidden import dev.inmo.tgbotapi.types.message.ChatEvents.forum.GeneralForumTopicUnhidden import dev.inmo.tgbotapi.types.message.ChatEvents.forum.WriteAccessAllowed +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostApprovalFailed +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostApproved +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostDeclined +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostInfo +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostPaid +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostRefunded import dev.inmo.tgbotapi.types.message.ChatEvents.voice.* import dev.inmo.tgbotapi.types.message.PrivateEventMessage +import dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesEventMessage import dev.inmo.tgbotapi.types.message.abstracts.ChatEventMessage import dev.inmo.tgbotapi.types.message.abstracts.SupergroupEventMessage import dev.inmo.tgbotapi.types.message.payments.RefundedPaymentEvent import dev.inmo.tgbotapi.types.message.payments.SuccessfulPaymentEvent +import dev.inmo.tgbotapi.types.payments.SuggestedPostPrice import dev.inmo.tgbotapi.types.request.ChatShared import dev.inmo.tgbotapi.types.request.ChatSharedRequest import dev.inmo.tgbotapi.types.request.UsersShared @@ -1182,3 +1190,135 @@ fun BC.onChannelDirectMessagesConfigurationChanged( additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver>? = null, scenarioReceiver: CustomBehaviourContextAndTypeReceiver> ) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver) + + +/** + * @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call + * @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example, + * this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage]. + * Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own. + * Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times] + * to combinate several filters + * @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream". + * [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for + * "stream" + * @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that + * data + */ +fun BC.onSuggestedPostInfo( + initialFilter: SimpleFilter>? = null, + subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver, Update>? = MessageFilterByChat, + markerFactory: MarkerFactory, Any>? = ByChatMessageMarkerFactory, + additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver>? = null, + scenarioReceiver: CustomBehaviourContextAndTypeReceiver> +) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver) + + +/** + * @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call + * @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example, + * this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage]. + * Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own. + * Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times] + * to combinate several filters + * @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream". + * [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for + * "stream" + * @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that + * data + */ +fun BC.onSuggestedPostApproved( + initialFilter: SimpleFilter>? = null, + subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver, Update>? = MessageFilterByChat, + markerFactory: MarkerFactory, Any>? = ByChatMessageMarkerFactory, + additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver>? = null, + scenarioReceiver: CustomBehaviourContextAndTypeReceiver> +) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver) + + +/** + * @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call + * @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example, + * this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage]. + * Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own. + * Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times] + * to combinate several filters + * @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream". + * [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for + * "stream" + * @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that + * data + */ +fun BC.onSuggestedPostApprovalFailed( + initialFilter: SimpleFilter>? = null, + subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver, Update>? = MessageFilterByChat, + markerFactory: MarkerFactory, Any>? = ByChatMessageMarkerFactory, + additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver>? = null, + scenarioReceiver: CustomBehaviourContextAndTypeReceiver> +) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver) + + +/** + * @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call + * @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example, + * this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage]. + * Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own. + * Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times] + * to combinate several filters + * @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream". + * [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for + * "stream" + * @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that + * data + */ +fun BC.onSuggestedPostDeclined( + initialFilter: SimpleFilter>? = null, + subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver, Update>? = MessageFilterByChat, + markerFactory: MarkerFactory, Any>? = ByChatMessageMarkerFactory, + additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver>? = null, + scenarioReceiver: CustomBehaviourContextAndTypeReceiver> +) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver) + + +/** + * @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call + * @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example, + * this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage]. + * Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own. + * Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times] + * to combinate several filters + * @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream". + * [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for + * "stream" + * @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that + * data + */ +fun BC.onSuggestedPostPaid( + initialFilter: SimpleFilter>? = null, + subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver, Update>? = MessageFilterByChat, + markerFactory: MarkerFactory, Any>? = ByChatMessageMarkerFactory, + additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver>? = null, + scenarioReceiver: CustomBehaviourContextAndTypeReceiver> +) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver) + + +/** + * @param initialFilter This filter will be called to remove unnecessary data BEFORE [scenarioReceiver] call + * @param subcontextUpdatesFilter This filter will be applied to each update inside of [scenarioReceiver]. For example, + * this filter will be used if you will call [dev.inmo.tgbotapi.extensions.behaviour_builder.expectations.waitContentMessage]. + * Use [dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContextAndTwoTypesReceiver] function to create your own. + * Use [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.plus] or [dev.inmo.tgbotapi.extensions.behaviour_builder.utils.times] + * to combinate several filters + * @param [markerFactory] **Pass null to handle requests fully parallel**. Will be used to identify different "stream". + * [scenarioReceiver] will be called synchronously in one "stream". Output of [markerFactory] will be used as a key for + * "stream" + * @param scenarioReceiver Main callback which will be used to handle incoming data if [initialFilter] will pass that + * data + */ +fun BC.onSuggestedPostRefunded( + initialFilter: SimpleFilter>? = null, + subcontextUpdatesFilter: CustomBehaviourContextAndTwoTypesReceiver, Update>? = MessageFilterByChat, + markerFactory: MarkerFactory, Any>? = ByChatMessageMarkerFactory, + additionalSubcontextInitialAction: CustomBehaviourContextAndTwoTypesReceiver>? = null, + scenarioReceiver: CustomBehaviourContextAndTypeReceiver> +) = onEventWithCustomChatEventMessage(initialFilter, subcontextUpdatesFilter, markerFactory, additionalSubcontextInitialAction, scenarioReceiver) diff --git a/tgbotapi.core/api/tgbotapi.core.api b/tgbotapi.core/api/tgbotapi.core.api index e8b64f95f8..4762751292 100644 --- a/tgbotapi.core/api/tgbotapi.core.api +++ b/tgbotapi.core/api/tgbotapi.core.api @@ -10138,6 +10138,7 @@ public final class dev/inmo/tgbotapi/types/CommonKt { public static final field isCanceledField Ljava/lang/String; public static final field isClosedField Ljava/lang/String; public static final field isDarkField Ljava/lang/String; + public static final field isDirectMessagesField Ljava/lang/String; public static final field isDisabledField Ljava/lang/String; public static final field isEnabledField Ljava/lang/String; public static final field isFirstRecurringField Ljava/lang/String; @@ -10239,6 +10240,7 @@ public final class dev/inmo/tgbotapi/types/CommonKt { public static final field paidMediaPayloadField Ljava/lang/String; public static final field paidMessageStarCountField Ljava/lang/String; public static final field paidStarCountField Ljava/lang/String; + public static final field parentChatField Ljava/lang/String; public static final field passportField Ljava/lang/String; public static final field passportRegistrationField Ljava/lang/String; public static final field payField Ljava/lang/String; @@ -12981,6 +12983,7 @@ public final class dev/inmo/tgbotapi/types/RawChatId$Companion { } public abstract interface class dev/inmo/tgbotapi/types/ReplyInfo { + public abstract fun getChecklistTaskId-Wby8Lsc ()Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId; public abstract fun getMessageMeta-0CjidFs ()Lkotlin/Triple; } @@ -13010,16 +13013,19 @@ public final class dev/inmo/tgbotapi/types/ReplyInfo$External$Content$Companion public final class dev/inmo/tgbotapi/types/ReplyInfo$External$Content$Media : dev/inmo/tgbotapi/abstracts/SpoilerableData, dev/inmo/tgbotapi/types/ReplyInfo$External$Content { public static final field Companion Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Media$Companion; - public synthetic fun (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;ZLdev/inmo/tgbotapi/types/files/MediaContentVariant;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;ZLdev/inmo/tgbotapi/types/files/MediaContentVariant;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;ZLdev/inmo/tgbotapi/types/files/MediaContentVariant;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/inmo/tgbotapi/types/message/MessageOrigin; public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/SuperPublicChat; public final fun component3-0CjidFs ()Lkotlin/Triple; public final fun component4 ()Z public final fun component5 ()Ldev/inmo/tgbotapi/types/files/MediaContentVariant; - public final fun copy-YkqRATo (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;ZLdev/inmo/tgbotapi/types/files/MediaContentVariant;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Media; - public static synthetic fun copy-YkqRATo$default (Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Media;Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;ZLdev/inmo/tgbotapi/types/files/MediaContentVariant;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Media; + public final fun component6-Wby8Lsc ()Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId; + public final fun copy-6c5RyNQ (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;ZLdev/inmo/tgbotapi/types/files/MediaContentVariant;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Media; + public static synthetic fun copy-6c5RyNQ$default (Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Media;Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;ZLdev/inmo/tgbotapi/types/files/MediaContentVariant;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Media; public fun equals (Ljava/lang/Object;)Z public fun getChat ()Ldev/inmo/tgbotapi/types/chat/SuperPublicChat; + public fun getChecklistTaskId-Wby8Lsc ()Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId; public synthetic fun getContent ()Ldev/inmo/tgbotapi/types/ReplyInfo$External$ContentVariant; public fun getContent ()Ldev/inmo/tgbotapi/types/files/MediaContentVariant; public fun getMessageMeta-0CjidFs ()Lkotlin/Triple; @@ -13046,15 +13052,18 @@ public final class dev/inmo/tgbotapi/types/ReplyInfo$External$Content$Media$Comp public final class dev/inmo/tgbotapi/types/ReplyInfo$External$Content$Simple : dev/inmo/tgbotapi/types/ReplyInfo$External$Content { public static final field Companion Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Simple$Companion; - public synthetic fun (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/ReplyInfo$External$ContentVariant;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/ReplyInfo$External$ContentVariant;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/ReplyInfo$External$ContentVariant;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/inmo/tgbotapi/types/message/MessageOrigin; public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/SuperPublicChat; public final fun component3-0CjidFs ()Lkotlin/Triple; public final fun component4 ()Ldev/inmo/tgbotapi/types/ReplyInfo$External$ContentVariant; - public final fun copy-HcFI3q4 (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/ReplyInfo$External$ContentVariant;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Simple; - public static synthetic fun copy-HcFI3q4$default (Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Simple;Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/ReplyInfo$External$ContentVariant;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Simple; + public final fun component5-Wby8Lsc ()Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId; + public final fun copy-Nu6vRuA (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/ReplyInfo$External$ContentVariant;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Simple; + public static synthetic fun copy-Nu6vRuA$default (Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Simple;Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/ReplyInfo$External$ContentVariant;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Content$Simple; public fun equals (Ljava/lang/Object;)Z public fun getChat ()Ldev/inmo/tgbotapi/types/chat/SuperPublicChat; + public fun getChecklistTaskId-Wby8Lsc ()Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId; public fun getContent ()Ldev/inmo/tgbotapi/types/ReplyInfo$External$ContentVariant; public fun getMessageMeta-0CjidFs ()Lkotlin/Triple; public fun getOrigin ()Ldev/inmo/tgbotapi/types/message/MessageOrigin; @@ -13082,15 +13091,18 @@ public abstract interface class dev/inmo/tgbotapi/types/ReplyInfo$External$Conte public final class dev/inmo/tgbotapi/types/ReplyInfo$External$Text : dev/inmo/tgbotapi/types/ReplyInfo$External { public static final field Companion Ldev/inmo/tgbotapi/types/ReplyInfo$External$Text$Companion; - public synthetic fun (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/inmo/tgbotapi/types/message/MessageOrigin; public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/SuperPublicChat; public final fun component3-0CjidFs ()Lkotlin/Triple; public final fun component4 ()Ldev/inmo/tgbotapi/types/LinkPreviewOptions; - public final fun copy-HcFI3q4 (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Text; - public static synthetic fun copy-HcFI3q4$default (Ldev/inmo/tgbotapi/types/ReplyInfo$External$Text;Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Text; + public final fun component5-Wby8Lsc ()Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId; + public final fun copy-Nu6vRuA (Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Text; + public static synthetic fun copy-Nu6vRuA$default (Ldev/inmo/tgbotapi/types/ReplyInfo$External$Text;Ldev/inmo/tgbotapi/types/message/MessageOrigin;Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;Lkotlin/Triple;Ldev/inmo/tgbotapi/types/LinkPreviewOptions;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/ReplyInfo$External$Text; public fun equals (Ljava/lang/Object;)Z public fun getChat ()Ldev/inmo/tgbotapi/types/chat/SuperPublicChat; + public fun getChecklistTaskId-Wby8Lsc ()Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId; public final fun getLinkPreviewOptions ()Ldev/inmo/tgbotapi/types/LinkPreviewOptions; public fun getMessageMeta-0CjidFs ()Lkotlin/Triple; public fun getOrigin ()Ldev/inmo/tgbotapi/types/message/MessageOrigin; @@ -13114,11 +13126,14 @@ public final class dev/inmo/tgbotapi/types/ReplyInfo$External$Text$Companion { } public final class dev/inmo/tgbotapi/types/ReplyInfo$Internal : dev/inmo/tgbotapi/types/ReplyInfo { - public fun (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;Lkotlin/jvm/internal/DefaultConstructorMarker;)V public final fun component1 ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public final fun copy (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/ReplyInfo$Internal; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/ReplyInfo$Internal;Ldev/inmo/tgbotapi/types/message/abstracts/Message;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/ReplyInfo$Internal; + public final fun component2-Wby8Lsc ()Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId; + public final fun copy-piqXRR4 (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;)Ldev/inmo/tgbotapi/types/ReplyInfo$Internal; + public static synthetic fun copy-piqXRR4$default (Ldev/inmo/tgbotapi/types/ReplyInfo$Internal;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/ReplyInfo$Internal; public fun equals (Ljava/lang/Object;)Z + public fun getChecklistTaskId-Wby8Lsc ()Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId; public final fun getMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; public synthetic fun getMessageMeta-0CjidFs ()Lkotlin/Triple; public fun getMessageMeta-fV8YnZ8 ()Lkotlin/Triple; @@ -13133,6 +13148,7 @@ public final class dev/inmo/tgbotapi/types/ReplyInfo$ToStory : dev/inmo/tgbotapi public final fun copy (Ldev/inmo/tgbotapi/types/stories/Story;)Ldev/inmo/tgbotapi/types/ReplyInfo$ToStory; public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/ReplyInfo$ToStory;Ldev/inmo/tgbotapi/types/stories/Story;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/ReplyInfo$ToStory; public fun equals (Ljava/lang/Object;)Z + public fun getChecklistTaskId-Wby8Lsc ()Ldev/inmo/tgbotapi/types/checklists/ChecklistTaskId; public fun getMessageMeta-0CjidFs ()Lkotlin/Triple; public final fun getStory ()Ldev/inmo/tgbotapi/types/stories/Story; public fun hashCode ()I @@ -15797,6 +15813,10 @@ public final class dev/inmo/tgbotapi/types/chat/AbleToAddInAttachmentMenuChat$Co public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/AbleToAddInAttachmentMenuChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/AbleToAddInAttachmentMenuChat;)Z +} + public abstract class dev/inmo/tgbotapi/types/chat/Bot : dev/inmo/tgbotapi/types/chat/User { public static final field Companion Ldev/inmo/tgbotapi/types/chat/Bot$Companion; } @@ -15815,6 +15835,10 @@ public final class dev/inmo/tgbotapi/types/chat/BusinessChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/BusinessChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/BusinessChat;)Z +} + public final class dev/inmo/tgbotapi/types/chat/BusinessChatImpl : dev/inmo/tgbotapi/types/chat/PreviewBusinessChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/BusinessChatImpl$Companion; public synthetic fun (Lkotlin/Pair;Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;Lkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -15828,6 +15852,7 @@ public final class dev/inmo/tgbotapi/types/chat/BusinessChatImpl : dev/inmo/tgbo public fun getOriginal ()Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat; public synthetic fun getOriginal ()Ldev/inmo/tgbotapi/types/chat/PrivateChat; public fun hashCode ()I + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -15855,6 +15880,10 @@ public final class dev/inmo/tgbotapi/types/chat/ChannelChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/ChannelChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ChannelChat;)Z +} + public final class dev/inmo/tgbotapi/types/chat/ChannelChatImpl : dev/inmo/tgbotapi/types/chat/PreviewChannelChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/ChannelChatImpl$Companion; public synthetic fun (JLjava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -15870,6 +15899,7 @@ public final class dev/inmo/tgbotapi/types/chat/ChannelChatImpl : dev/inmo/tgbot public fun getTitle ()Ljava/lang/String; public fun getUsername-san03mo ()Ljava/lang/String; public fun hashCode ()I + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -15888,15 +15918,66 @@ public final class dev/inmo/tgbotapi/types/chat/ChannelChatImpl$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public abstract interface class dev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChat : dev/inmo/tgbotapi/types/chat/ForumChat { + public static final field Companion Ldev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChat$Companion; + public fun isDirectMessages ()Z +} + +public final class dev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChat$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChat;)Z +} + +public final class dev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChatImpl : dev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat { + public static final field Companion Ldev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChatImpl$Companion; + public synthetic fun (Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ldev/inmo/tgbotapi/types/IdChatIdentifier; + public final fun component2 ()Ljava/lang/String; + public final fun component3-san03mo ()Ljava/lang/String; + public final fun copy-KFkP0sY (Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChatImpl; + public static synthetic fun copy-KFkP0sY$default (Ldev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChatImpl;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChatImpl; + public fun equals (Ljava/lang/Object;)Z + public fun getId ()Ldev/inmo/tgbotapi/types/IdChatIdentifier; + public fun getTitle ()Ljava/lang/String; + public fun getUsername-san03mo ()Ljava/lang/String; + public fun hashCode ()I + public fun isDirectMessages ()Z + public fun toString ()Ljava/lang/String; +} + +public final synthetic class dev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChatImpl$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChatImpl$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChatImpl; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChatImpl;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChatImpl$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + public abstract interface class dev/inmo/tgbotapi/types/chat/Chat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/Chat$Companion; public abstract fun getId ()Ldev/inmo/tgbotapi/types/IdChatIdentifier; + public fun isDirectMessages ()Z } public final class dev/inmo/tgbotapi/types/chat/Chat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/Chat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/Chat;)Z +} + public final class dev/inmo/tgbotapi/types/chat/ChatBackground : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/PublicChatEvent { public static final field Companion Ldev/inmo/tgbotapi/types/chat/ChatBackground$Companion; public fun (Ldev/inmo/tgbotapi/types/BackgroundType;)V @@ -16538,6 +16619,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedBusinessChat$Companion { public final class dev/inmo/tgbotapi/types/chat/ExtendedBusinessChat$DefaultImpls { public static fun getCanReceiveGifts (Ldev/inmo/tgbotapi/types/chat/ExtendedBusinessChat;)Z + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ExtendedBusinessChat;)Z } public final class dev/inmo/tgbotapi/types/chat/ExtendedBusinessChatImpl : dev/inmo/tgbotapi/types/chat/ExtendedBusinessChat, dev/inmo/tgbotapi/types/chat/ExtendedChat { @@ -16561,6 +16643,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedBusinessChatImpl : dev/i public fun getProfileAccentColorId-mg_h9nU ()Ldev/inmo/tgbotapi/types/colors/ColorId; public fun getProfileBackgroundCustomEmojiId-GbmMWyQ ()Ljava/lang/String; public fun hashCode ()I + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -16591,6 +16674,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedChannelChat$Companion { public final class dev/inmo/tgbotapi/types/chat/ExtendedChannelChat$DefaultImpls { public static fun getCanReceiveGifts (Ldev/inmo/tgbotapi/types/chat/ExtendedChannelChat;)Z + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ExtendedChannelChat;)Z } public final class dev/inmo/tgbotapi/types/chat/ExtendedChannelChatImpl : dev/inmo/tgbotapi/types/chat/ExtendedChannelChat { @@ -16645,6 +16729,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedChannelChatImpl : dev/in public fun getTitle ()Ljava/lang/String; public fun getUsername-san03mo ()Ljava/lang/String; public fun hashCode ()I + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -16663,6 +16748,110 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedChannelChatImpl$Companio public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public abstract interface class dev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChat : dev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChat, dev/inmo/tgbotapi/types/chat/ExtendedForumChat { + public static final field Companion Ldev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChat$Companion; + public abstract fun getChannelChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat; +} + +public final class dev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChat$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChat$DefaultImpls { + public static fun getCanReceiveGifts (Ldev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChat;)Z + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChat;)Z +} + +public final class dev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChatImpl : dev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChat { + public static final field Companion Ldev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChatImpl$Companion; + public synthetic fun (Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;Ljava/lang/String;Ljava/util/List;Ldev/inmo/tgbotapi/types/ChatPhoto;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ljava/lang/String;Ljava/lang/Long;ZLdev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/ChatLocation;ZZZZLjava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;ILdev/inmo/tgbotapi/types/colors/ColorId;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/Integer;Ljava/lang/String;ILdev/inmo/tgbotapi/types/gifts/AcceptedGiftTypes;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;Ljava/lang/String;Ljava/util/List;Ldev/inmo/tgbotapi/types/ChatPhoto;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ljava/lang/String;Ljava/lang/Long;ZLdev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/ChatLocation;ZZZZLjava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;ILdev/inmo/tgbotapi/types/colors/ColorId;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/Integer;Ljava/lang/String;ILdev/inmo/tgbotapi/types/gifts/AcceptedGiftTypes;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ldev/inmo/tgbotapi/types/IdChatIdentifier; + public final fun component10 ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; + public final fun component11-eaLzeK0 ()Ljava/lang/String; + public final fun component12 ()Ljava/lang/Long; + public final fun component13 ()Z + public final fun component14 ()Ldev/inmo/tgbotapi/types/IdChatIdentifier; + public final fun component15 ()Ldev/inmo/tgbotapi/types/ChatLocation; + public final fun component16 ()Z + public final fun component17 ()Z + public final fun component18 ()Z + public final fun component19 ()Z + public final fun component2 ()Ljava/lang/String; + public final fun component20 ()Ljava/util/List; + public final fun component21-GbmMWyQ ()Ljava/lang/String; + public final fun component22 ()Ldev/inmo/tgbotapi/types/TelegramDate; + public final fun component23-f3WtEc0 ()I + public final fun component24-mg_h9nU ()Ldev/inmo/tgbotapi/types/colors/ColorId; + public final fun component25-GbmMWyQ ()Ljava/lang/String; + public final fun component26-GbmMWyQ ()Ljava/lang/String; + public final fun component27 ()Z + public final fun component28 ()Ljava/lang/Integer; + public final fun component29-eaLzeK0 ()Ljava/lang/String; + public final fun component3 ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat; + public final fun component30 ()I + public final fun component31 ()Ldev/inmo/tgbotapi/types/gifts/AcceptedGiftTypes; + public final fun component4-san03mo ()Ljava/lang/String; + public final fun component5 ()Ljava/util/List; + public final fun component6 ()Ldev/inmo/tgbotapi/types/ChatPhoto; + public final fun component7 ()Ldev/inmo/tgbotapi/types/chat/ChatPermissions; + public final fun component8 ()Ljava/lang/String; + public final fun component9 ()Ljava/lang/String; + public final fun copy-Ana-3lw (Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;Ljava/lang/String;Ljava/util/List;Ldev/inmo/tgbotapi/types/ChatPhoto;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ljava/lang/String;Ljava/lang/Long;ZLdev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/ChatLocation;ZZZZLjava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;ILdev/inmo/tgbotapi/types/colors/ColorId;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/Integer;Ljava/lang/String;ILdev/inmo/tgbotapi/types/gifts/AcceptedGiftTypes;)Ldev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChatImpl; + public static synthetic fun copy-Ana-3lw$default (Ldev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChatImpl;Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;Ljava/lang/String;Ljava/util/List;Ldev/inmo/tgbotapi/types/ChatPhoto;Ldev/inmo/tgbotapi/types/chat/ChatPermissions;Ljava/lang/String;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ljava/lang/String;Ljava/lang/Long;ZLdev/inmo/tgbotapi/types/IdChatIdentifier;Ldev/inmo/tgbotapi/types/ChatLocation;ZZZZLjava/util/List;Ljava/lang/String;Ldev/inmo/tgbotapi/types/TelegramDate;ILdev/inmo/tgbotapi/types/colors/ColorId;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/Integer;Ljava/lang/String;ILdev/inmo/tgbotapi/types/gifts/AcceptedGiftTypes;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChatImpl; + public fun equals (Ljava/lang/Object;)Z + public fun getAccentColorId-f3WtEc0 ()I + public fun getAcceptedGiftTypes ()Ldev/inmo/tgbotapi/types/gifts/AcceptedGiftTypes; + public fun getActiveUsernames ()Ljava/util/List; + public fun getAvailableReactions ()Ljava/util/List; + public fun getBackgroundCustomEmojiId-GbmMWyQ ()Ljava/lang/String; + public fun getCanReceiveGifts ()Z + public fun getCanSetStickerSet ()Z + public fun getChannelChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat; + public fun getChatPhoto ()Ldev/inmo/tgbotapi/types/ChatPhoto; + public fun getCustomEmojiStickerSetName-eaLzeK0 ()Ljava/lang/String; + public fun getDescription ()Ljava/lang/String; + public fun getId ()Ldev/inmo/tgbotapi/types/IdChatIdentifier; + public fun getInviteLink ()Ljava/lang/String; + public fun getLinkedChannelChatId ()Ldev/inmo/tgbotapi/types/IdChatIdentifier; + public fun getLocation ()Ldev/inmo/tgbotapi/types/ChatLocation; + public fun getMaxReactionsCount ()I + public fun getMembersHidden ()Z + public fun getNewMembersSeeHistory ()Z + public fun getPermissions ()Ldev/inmo/tgbotapi/types/chat/ChatPermissions; + public fun getPinnedMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; + public fun getProfileAccentColorId-mg_h9nU ()Ldev/inmo/tgbotapi/types/colors/ColorId; + public fun getProfileBackgroundCustomEmojiId-GbmMWyQ ()Ljava/lang/String; + public fun getRequireAdminApproveToJoin ()Z + public fun getRequiresJoinForMessaging ()Z + public fun getSlowModeDelay ()Ljava/lang/Long; + public fun getStatusEmojiExpiration ()Ldev/inmo/tgbotapi/types/TelegramDate; + public fun getStatusEmojiId-GbmMWyQ ()Ljava/lang/String; + public fun getStickerSetName-eaLzeK0 ()Ljava/lang/String; + public fun getTitle ()Ljava/lang/String; + public fun getUnrestrictBoostsCount ()Ljava/lang/Integer; + public fun getUsername-san03mo ()Ljava/lang/String; + public fun hashCode ()I + public fun isAggressiveAntiSpamEnabled ()Z + public fun isDirectMessages ()Z + public fun toString ()Ljava/lang/String; +} + +public final synthetic class dev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChatImpl$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChatImpl$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChatImpl; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChatImpl;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChatImpl$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + public abstract interface class dev/inmo/tgbotapi/types/chat/ExtendedChat : dev/inmo/tgbotapi/types/chat/Chat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/ExtendedChat$Companion; public abstract fun getAccentColorId-f3WtEc0 ()I @@ -16681,6 +16870,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedChat$Companion { public final class dev/inmo/tgbotapi/types/chat/ExtendedChat$DefaultImpls { public static fun getCanReceiveGifts (Ldev/inmo/tgbotapi/types/chat/ExtendedChat;)Z + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ExtendedChat;)Z } public abstract class dev/inmo/tgbotapi/types/chat/ExtendedChatSerializer : kotlinx/serialization/KSerializer { @@ -16718,6 +16908,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedChatWithUsername$Compani public final class dev/inmo/tgbotapi/types/chat/ExtendedChatWithUsername$DefaultImpls { public static fun getCanReceiveGifts (Ldev/inmo/tgbotapi/types/chat/ExtendedChatWithUsername;)Z + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ExtendedChatWithUsername;)Z } public abstract interface class dev/inmo/tgbotapi/types/chat/ExtendedForumChat : dev/inmo/tgbotapi/types/chat/ExtendedSupergroupChat, dev/inmo/tgbotapi/types/chat/ForumChat { @@ -16730,6 +16921,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedForumChat$Companion { public final class dev/inmo/tgbotapi/types/chat/ExtendedForumChat$DefaultImpls { public static fun getCanReceiveGifts (Ldev/inmo/tgbotapi/types/chat/ExtendedForumChat;)Z + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ExtendedForumChat;)Z } public final class dev/inmo/tgbotapi/types/chat/ExtendedForumChatImpl : dev/inmo/tgbotapi/types/chat/ExtendedForumChat { @@ -16801,6 +16993,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedForumChatImpl : dev/inmo public fun getUsername-san03mo ()Ljava/lang/String; public fun hashCode ()I public fun isAggressiveAntiSpamEnabled ()Z + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -16830,6 +17023,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedGroupChat$Companion { public final class dev/inmo/tgbotapi/types/chat/ExtendedGroupChat$DefaultImpls { public static fun getCanReceiveGifts (Ldev/inmo/tgbotapi/types/chat/ExtendedGroupChat;)Z + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ExtendedGroupChat;)Z } public final class dev/inmo/tgbotapi/types/chat/ExtendedGroupChatImpl : dev/inmo/tgbotapi/types/chat/ExtendedGroupChat { @@ -16878,6 +17072,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedGroupChatImpl : dev/inmo public fun getStatusEmojiId-GbmMWyQ ()Ljava/lang/String; public fun getTitle ()Ljava/lang/String; public fun hashCode ()I + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -16908,6 +17103,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedNonBotChat$Companion { public final class dev/inmo/tgbotapi/types/chat/ExtendedNonBotChat$DefaultImpls { public static fun getCanReceiveGifts (Ldev/inmo/tgbotapi/types/chat/ExtendedNonBotChat;)Z + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ExtendedNonBotChat;)Z } public abstract interface class dev/inmo/tgbotapi/types/chat/ExtendedPrivateChat : dev/inmo/tgbotapi/types/chat/ExtendedChatWithUsername, dev/inmo/tgbotapi/types/chat/ExtendedNonBotChat, dev/inmo/tgbotapi/types/chat/PrivateChat { @@ -16930,6 +17126,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedPrivateChat$Companion { public final class dev/inmo/tgbotapi/types/chat/ExtendedPrivateChat$DefaultImpls { public static fun getAllowCreateUserIdLink (Ldev/inmo/tgbotapi/types/chat/ExtendedPrivateChat;)Z public static fun getCanReceiveGifts (Ldev/inmo/tgbotapi/types/chat/ExtendedPrivateChat;)Z + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ExtendedPrivateChat;)Z } public final class dev/inmo/tgbotapi/types/chat/ExtendedPrivateChatImpl : dev/inmo/tgbotapi/types/chat/ExtendedPrivateChat { @@ -16987,6 +17184,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedPrivateChatImpl : dev/in public fun getStatusEmojiId-GbmMWyQ ()Ljava/lang/String; public fun getUsername-san03mo ()Ljava/lang/String; public fun hashCode ()I + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -17016,6 +17214,7 @@ public abstract interface class dev/inmo/tgbotapi/types/chat/ExtendedPublicChat public final class dev/inmo/tgbotapi/types/chat/ExtendedPublicChat$DefaultImpls { public static fun getCanReceiveGifts (Ldev/inmo/tgbotapi/types/chat/ExtendedPublicChat;)Z + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ExtendedPublicChat;)Z } public abstract interface class dev/inmo/tgbotapi/types/chat/ExtendedSupergroupChat : dev/inmo/tgbotapi/types/chat/ExtendedChatWithUsername, dev/inmo/tgbotapi/types/chat/ExtendedGroupChat, dev/inmo/tgbotapi/types/chat/SupergroupChat { @@ -17038,6 +17237,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedSupergroupChat$Companion public final class dev/inmo/tgbotapi/types/chat/ExtendedSupergroupChat$DefaultImpls { public static fun getCanReceiveGifts (Ldev/inmo/tgbotapi/types/chat/ExtendedSupergroupChat;)Z + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ExtendedSupergroupChat;)Z } public final class dev/inmo/tgbotapi/types/chat/ExtendedSupergroupChatImpl : dev/inmo/tgbotapi/types/chat/ExtendedSupergroupChat { @@ -17110,6 +17310,7 @@ public final class dev/inmo/tgbotapi/types/chat/ExtendedSupergroupChatImpl : dev public fun getUsername-san03mo ()Ljava/lang/String; public fun hashCode ()I public fun isAggressiveAntiSpamEnabled ()Z + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -17136,6 +17337,10 @@ public final class dev/inmo/tgbotapi/types/chat/ForumChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/ForumChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/ForumChat;)Z +} + public final class dev/inmo/tgbotapi/types/chat/ForumChatImpl : dev/inmo/tgbotapi/types/chat/PreviewForumChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/ForumChatImpl$Companion; public synthetic fun (Ldev/inmo/tgbotapi/types/IdChatIdentifier;Ljava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -17150,6 +17355,7 @@ public final class dev/inmo/tgbotapi/types/chat/ForumChatImpl : dev/inmo/tgbotap public fun getTitle ()Ljava/lang/String; public fun getUsername-san03mo ()Ljava/lang/String; public fun hashCode ()I + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -17176,6 +17382,10 @@ public final class dev/inmo/tgbotapi/types/chat/GroupChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/GroupChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/GroupChat;)Z +} + public final class dev/inmo/tgbotapi/types/chat/GroupChatImpl : dev/inmo/tgbotapi/types/chat/PreviewGroupChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/GroupChatImpl$Companion; public synthetic fun (JLjava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -17188,6 +17398,7 @@ public final class dev/inmo/tgbotapi/types/chat/GroupChatImpl : dev/inmo/tgbotap public fun getId-tHkBKVM ()J public fun getTitle ()Ljava/lang/String; public fun hashCode ()I + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -17215,6 +17426,10 @@ public final class dev/inmo/tgbotapi/types/chat/PossiblyPremiumChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PossiblyPremiumChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PossiblyPremiumChat;)Z +} + public abstract class dev/inmo/tgbotapi/types/chat/PreviewBot : dev/inmo/tgbotapi/types/chat/PreviewUser { public static final field Companion Ldev/inmo/tgbotapi/types/chat/PreviewBot$Companion; } @@ -17231,6 +17446,10 @@ public final class dev/inmo/tgbotapi/types/chat/PreviewBusinessChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PreviewBusinessChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PreviewBusinessChat;)Z +} + public abstract interface class dev/inmo/tgbotapi/types/chat/PreviewChannelChat : dev/inmo/tgbotapi/types/chat/ChannelChat, dev/inmo/tgbotapi/types/chat/PreviewSuperPublicChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat$Companion; } @@ -17239,6 +17458,22 @@ public final class dev/inmo/tgbotapi/types/chat/PreviewChannelChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PreviewChannelChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;)Z +} + +public abstract interface class dev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat : dev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChat, dev/inmo/tgbotapi/types/chat/PreviewForumChat { + public static final field Companion Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat$Companion; +} + +public final class dev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;)Z +} + public abstract interface class dev/inmo/tgbotapi/types/chat/PreviewChat : dev/inmo/tgbotapi/types/chat/Chat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/PreviewChat$Companion; } @@ -17247,6 +17482,10 @@ public final class dev/inmo/tgbotapi/types/chat/PreviewChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PreviewChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PreviewChat;)Z +} + public final class dev/inmo/tgbotapi/types/chat/PreviewChatSerializer : kotlinx/serialization/KSerializer { public static final field INSTANCE Ldev/inmo/tgbotapi/types/chat/PreviewChatSerializer; public fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/chat/PreviewChat; @@ -17264,6 +17503,10 @@ public final class dev/inmo/tgbotapi/types/chat/PreviewForumChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PreviewForumChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;)Z +} + public abstract interface class dev/inmo/tgbotapi/types/chat/PreviewGroupChat : dev/inmo/tgbotapi/types/chat/GroupChat, dev/inmo/tgbotapi/types/chat/PreviewPublicChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat$Companion; } @@ -17272,6 +17515,10 @@ public final class dev/inmo/tgbotapi/types/chat/PreviewGroupChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PreviewGroupChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat;)Z +} + public abstract interface class dev/inmo/tgbotapi/types/chat/PreviewPrivateChat : dev/inmo/tgbotapi/types/chat/PreviewUsernameChat, dev/inmo/tgbotapi/types/chat/PrivateChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat$Companion; } @@ -17280,6 +17527,10 @@ public final class dev/inmo/tgbotapi/types/chat/PreviewPrivateChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PreviewPrivateChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PreviewPrivateChat;)Z +} + public abstract interface class dev/inmo/tgbotapi/types/chat/PreviewPublicChat : dev/inmo/tgbotapi/types/chat/PreviewChat, dev/inmo/tgbotapi/types/chat/PublicChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/PreviewPublicChat$Companion; } @@ -17288,6 +17539,10 @@ public final class dev/inmo/tgbotapi/types/chat/PreviewPublicChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PreviewPublicChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PreviewPublicChat;)Z +} + public abstract interface class dev/inmo/tgbotapi/types/chat/PreviewSuperPublicChat : dev/inmo/tgbotapi/types/chat/PreviewPublicChat, dev/inmo/tgbotapi/types/chat/PreviewUsernameChat, dev/inmo/tgbotapi/types/chat/SuperPublicChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/PreviewSuperPublicChat$Companion; } @@ -17296,6 +17551,10 @@ public final class dev/inmo/tgbotapi/types/chat/PreviewSuperPublicChat$Companion public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PreviewSuperPublicChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PreviewSuperPublicChat;)Z +} + public abstract interface class dev/inmo/tgbotapi/types/chat/PreviewSupergroupChat : dev/inmo/tgbotapi/types/chat/PreviewGroupChat, dev/inmo/tgbotapi/types/chat/PreviewSuperPublicChat, dev/inmo/tgbotapi/types/chat/SupergroupChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/PreviewSupergroupChat$Companion; } @@ -17304,6 +17563,10 @@ public final class dev/inmo/tgbotapi/types/chat/PreviewSupergroupChat$Companion public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PreviewSupergroupChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PreviewSupergroupChat;)Z +} + public abstract class dev/inmo/tgbotapi/types/chat/PreviewUser : dev/inmo/tgbotapi/types/chat/User, dev/inmo/tgbotapi/types/chat/PreviewPrivateChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/PreviewUser$Companion; } @@ -17320,6 +17583,10 @@ public final class dev/inmo/tgbotapi/types/chat/PreviewUsernameChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PreviewUsernameChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PreviewUsernameChat;)Z +} + public abstract interface class dev/inmo/tgbotapi/types/chat/PrivateChat : dev/inmo/tgbotapi/types/chat/Chat, dev/inmo/tgbotapi/types/chat/UsernameChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/PrivateChat$Companion; public abstract fun getFirstName ()Ljava/lang/String; @@ -17331,6 +17598,10 @@ public final class dev/inmo/tgbotapi/types/chat/PrivateChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PrivateChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PrivateChat;)Z +} + public final class dev/inmo/tgbotapi/types/chat/PrivateChatImpl : dev/inmo/tgbotapi/types/chat/PreviewPrivateChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/PrivateChatImpl$Companion; public synthetic fun (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -17348,6 +17619,7 @@ public final class dev/inmo/tgbotapi/types/chat/PrivateChatImpl : dev/inmo/tgbot public fun getLastName ()Ljava/lang/String; public fun getUsername-san03mo ()Ljava/lang/String; public fun hashCode ()I + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -17375,6 +17647,10 @@ public final class dev/inmo/tgbotapi/types/chat/PublicChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/PublicChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/PublicChat;)Z +} + public abstract interface class dev/inmo/tgbotapi/types/chat/SuperPublicChat : dev/inmo/tgbotapi/types/chat/PublicChat, dev/inmo/tgbotapi/types/chat/UsernameChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/SuperPublicChat$Companion; } @@ -17383,6 +17659,10 @@ public final class dev/inmo/tgbotapi/types/chat/SuperPublicChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/SuperPublicChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/SuperPublicChat;)Z +} + public abstract interface class dev/inmo/tgbotapi/types/chat/SupergroupChat : dev/inmo/tgbotapi/types/chat/GroupChat, dev/inmo/tgbotapi/types/chat/SuperPublicChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/SupergroupChat$Companion; } @@ -17391,6 +17671,10 @@ public final class dev/inmo/tgbotapi/types/chat/SupergroupChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/SupergroupChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/SupergroupChat;)Z +} + public final class dev/inmo/tgbotapi/types/chat/SupergroupChatImpl : dev/inmo/tgbotapi/types/chat/PreviewSupergroupChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/SupergroupChatImpl$Companion; public synthetic fun (JLjava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -17406,6 +17690,7 @@ public final class dev/inmo/tgbotapi/types/chat/SupergroupChatImpl : dev/inmo/tg public fun getTitle ()Ljava/lang/String; public fun getUsername-san03mo ()Ljava/lang/String; public fun hashCode ()I + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -17436,6 +17721,7 @@ public final class dev/inmo/tgbotapi/types/chat/UnknownChatType : dev/inmo/tgbot public final fun getRaw ()Ljava/lang/String; public final fun getRawJson ()Lkotlinx/serialization/json/JsonObject; public fun hashCode ()I + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } @@ -17459,11 +17745,13 @@ public final class dev/inmo/tgbotapi/types/chat/UnknownExtendedChat : dev/inmo/t public final fun getRaw ()Ljava/lang/String; public final fun getRawJson ()Lkotlinx/serialization/json/JsonObject; public fun hashCode ()I + public fun isDirectMessages ()Z public fun toString ()Ljava/lang/String; } public abstract class dev/inmo/tgbotapi/types/chat/User : dev/inmo/tgbotapi/types/chat/PrivateChat { public static final field Companion Ldev/inmo/tgbotapi/types/chat/User$Companion; + public fun isDirectMessages ()Z } public final class dev/inmo/tgbotapi/types/chat/User$Companion { @@ -17488,6 +17776,10 @@ public final class dev/inmo/tgbotapi/types/chat/UsernameChat$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/chat/UsernameChat$DefaultImpls { + public static fun isDirectMessages (Ldev/inmo/tgbotapi/types/chat/UsernameChat;)Z +} + public abstract interface class dev/inmo/tgbotapi/types/chat/member/AdministratorChatMember : dev/inmo/tgbotapi/types/chat/member/ChatAdministratorRights, dev/inmo/tgbotapi/types/chat/member/SpecialRightsChatMember { public static final field Companion Ldev/inmo/tgbotapi/types/chat/member/AdministratorChatMember$Companion; public abstract fun getCanBeEdited ()Z @@ -21847,243 +22139,6 @@ public final class dev/inmo/tgbotapi/types/message/ChatEvents/ProximityAlertTrig public final fun serializer ()Lkotlinx/serialization/KSerializer; } -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent { - public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed$Companion; - public fun (Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ldev/inmo/tgbotapi/types/message/abstracts/Message;)V - public synthetic fun (Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ldev/inmo/tgbotapi/types/message/abstracts/Message;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice; - public final fun component2 ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public final fun copy (Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ldev/inmo/tgbotapi/types/message/abstracts/Message;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed; - public fun equals (Ljava/lang/Object;)Z - public final fun getPrice ()Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice; - public final fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed$$serializer : kotlinx/serialization/internal/GeneratedSerializer { - public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed$$serializer; - public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; - public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed;)V - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed$Companion { - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent { - public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved$Companion; - public fun (Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;)V - public synthetic fun (Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ldev/inmo/tgbotapi/types/TelegramDate; - public final fun component2 ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public final fun component3 ()Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice; - public final fun copy (Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved; - public fun equals (Ljava/lang/Object;)Z - public final fun getPrice ()Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice; - public final fun getSendDate ()Ldev/inmo/tgbotapi/types/TelegramDate; - public final fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved$$serializer : kotlinx/serialization/internal/GeneratedSerializer { - public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved$$serializer; - public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; - public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved;)V - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved$Companion { - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent { - public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined$Companion; - public fun ()V - public fun (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ljava/lang/String;)V - public synthetic fun (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public final fun component2 ()Ljava/lang/String; - public final fun copy (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined; - public fun equals (Ljava/lang/Object;)Z - public final fun getComment ()Ljava/lang/String; - public final fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined$$serializer : kotlinx/serialization/internal/GeneratedSerializer { - public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined$$serializer; - public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; - public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined;)V - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined$Companion { - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - -public abstract interface class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent, dev/inmo/tgbotapi/types/payments/abstracts/Currencied { - public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$Companion; - public abstract fun getAmount ()Ljava/lang/Long; - public abstract fun getStarAmount ()Ldev/inmo/tgbotapi/types/payments/stars/StarAmount; - public abstract fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$Companion : kotlinx/serialization/KSerializer { - public fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid;)V - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$Other : dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid { - public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$Other$Companion; - public fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ljava/lang/Long;Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;)V - public synthetic fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ljava/lang/Long;Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public final fun component3 ()Ljava/lang/Long; - public final fun component4 ()Ldev/inmo/tgbotapi/types/payments/stars/StarAmount; - public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ljava/lang/Long;Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$Other; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$Other;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ljava/lang/Long;Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$Other; - public fun equals (Ljava/lang/Object;)Z - public fun getAmount ()Ljava/lang/Long; - public fun getCurrency ()Ljava/lang/String; - public fun getStarAmount ()Ldev/inmo/tgbotapi/types/payments/stars/StarAmount; - public fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$Other$$serializer : kotlinx/serialization/internal/GeneratedSerializer { - public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$Other$$serializer; - public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; - public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$Other; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$Other;)V - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$Other$Companion { - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$TON : dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid { - public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$TON$Companion; - public fun (JLdev/inmo/tgbotapi/types/message/abstracts/Message;)V - public synthetic fun (JLdev/inmo/tgbotapi/types/message/abstracts/Message;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()J - public final fun component2 ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public final fun copy (JLdev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$TON; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$TON;JLdev/inmo/tgbotapi/types/message/abstracts/Message;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$TON; - public fun equals (Ljava/lang/Object;)Z - public fun getAmount ()Ljava/lang/Long; - public fun getCurrency ()Ljava/lang/String; - public fun getStarAmount ()Ldev/inmo/tgbotapi/types/payments/stars/StarAmount; - public fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$TON$$serializer : kotlinx/serialization/internal/GeneratedSerializer { - public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$TON$$serializer; - public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; - public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$TON; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$TON;)V - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$TON$Companion { - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$XTR : dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid { - public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$XTR$Companion; - public fun (Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;Ldev/inmo/tgbotapi/types/message/abstracts/Message;)V - public synthetic fun (Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;Ldev/inmo/tgbotapi/types/message/abstracts/Message;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ldev/inmo/tgbotapi/types/payments/stars/StarAmount; - public final fun component2 ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public final fun copy (Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$XTR; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$XTR;Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;Ldev/inmo/tgbotapi/types/message/abstracts/Message;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$XTR; - public fun equals (Ljava/lang/Object;)Z - public fun getAmount ()Ljava/lang/Long; - public fun getCurrency ()Ljava/lang/String; - public fun getStarAmount ()Ldev/inmo/tgbotapi/types/payments/stars/StarAmount; - public fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$XTR$$serializer : kotlinx/serialization/internal/GeneratedSerializer { - public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$XTR$$serializer; - public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; - public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$XTR; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$XTR;)V - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid$XTR$Companion { - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent { - public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded$Companion; - public fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/Message;)V - public synthetic fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/Message;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/Message;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded; - public fun equals (Ljava/lang/Object;)Z - public final fun getReason ()Ljava/lang/String; - public final fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded$$serializer : kotlinx/serialization/internal/GeneratedSerializer { - public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded$$serializer; - public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; - public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded;)V - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded$Companion { - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - public final class dev/inmo/tgbotapi/types/message/ChatEvents/SupergroupChatCreated : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/SupergroupEvent { public fun (Ldev/inmo/tgbotapi/types/IdChatIdentifier;)V public final fun getMigratedFrom ()Ldev/inmo/tgbotapi/types/IdChatIdentifier; @@ -22129,7 +22184,7 @@ public final class dev/inmo/tgbotapi/types/message/ChatEvents/WebAppData$Compani public final fun serializer ()Lkotlinx/serialization/KSerializer; } -public abstract interface class dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/SupergroupEvent { +public abstract interface class dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ForumEvent { } public abstract interface class dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelEvent : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent { @@ -22317,6 +22372,346 @@ public final class dev/inmo/tgbotapi/types/message/ChatEvents/forum/WriteAccessA public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent { + public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed$Companion; + public fun (Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice; + public final fun component2 ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public final fun copy (Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed; + public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed; + public fun equals (Ljava/lang/Object;)Z + public final fun getPrice ()Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice; + public final fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent { + public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved$Companion; + public fun (Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ldev/inmo/tgbotapi/types/TelegramDate; + public final fun component2 ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public final fun component3 ()Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice; + public final fun copy (Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved; + public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved;Ldev/inmo/tgbotapi/types/TelegramDate;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved; + public fun equals (Ljava/lang/Object;)Z + public final fun getPrice ()Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice; + public final fun getSendDate ()Ldev/inmo/tgbotapi/types/TelegramDate; + public final fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent { + public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined$Companion; + public fun ()V + public fun (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;Ljava/lang/String;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public final fun component2 ()Ljava/lang/String; + public final fun copy (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined; + public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined; + public fun equals (Ljava/lang/Object;)Z + public final fun getComment ()Ljava/lang/String; + public final fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent { + public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$Companion; + public fun (Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ljava/lang/Integer;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State; + public final fun component2 ()Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice; + public final fun component3 ()Ljava/lang/Integer; + public final fun copy (Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ljava/lang/Integer;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo; + public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo;Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ljava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo; + public fun equals (Ljava/lang/Object;)Z + public final fun getPrice ()Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice; + public final fun getSendDate ()Ljava/lang/Integer; + public final fun getState ()Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public abstract interface class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State { + public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Companion; + public abstract fun getName ()Ljava/lang/String; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Approved : dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Approved; + public fun equals (Ljava/lang/Object;)Z + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public final fun serializer ()Lkotlinx/serialization/KSerializer; + public fun toString ()Ljava/lang/String; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Companion : kotlinx/serialization/KSerializer { + public fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Declined : dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Declined; + public fun equals (Ljava/lang/Object;)Z + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public final fun serializer ()Lkotlinx/serialization/KSerializer; + public fun toString ()Ljava/lang/String; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Pending : dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Pending; + public fun equals (Ljava/lang/Object;)Z + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public final fun serializer ()Lkotlinx/serialization/KSerializer; + public fun toString ()Ljava/lang/String; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Unknown : dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State { + public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Unknown$Companion; + public static final synthetic fun box-impl (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Unknown; + public static fun constructor-impl (Ljava/lang/String;)Ljava/lang/String; + public fun equals (Ljava/lang/Object;)Z + public static fun equals-impl (Ljava/lang/String;Ljava/lang/Object;)Z + public static final fun equals-impl0 (Ljava/lang/String;Ljava/lang/String;)Z + public fun getName ()Ljava/lang/String; + public fun hashCode ()I + public static fun hashCode-impl (Ljava/lang/String;)I + public fun toString ()Ljava/lang/String; + public static fun toString-impl (Ljava/lang/String;)Ljava/lang/String; + public final synthetic fun unbox-impl ()Ljava/lang/String; +} + +public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Unknown$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Unknown$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun deserialize-57SlJoE (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/String; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public final fun serialize-3OyYRwk (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/String;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo$State$Unknown$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public abstract interface class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent, dev/inmo/tgbotapi/types/payments/abstracts/Currencied { + public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Companion; + public abstract fun getAmount ()Ljava/lang/Long; + public abstract fun getStarAmount ()Ldev/inmo/tgbotapi/types/payments/stars/StarAmount; + public abstract fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Companion : kotlinx/serialization/KSerializer { + public fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Other : dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid { + public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Other$Companion; + public fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;Ljava/lang/Long;Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;)V + public synthetic fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;Ljava/lang/Long;Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ljava/lang/String; + public final fun component2 ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public final fun component3 ()Ljava/lang/Long; + public final fun component4 ()Ldev/inmo/tgbotapi/types/payments/stars/StarAmount; + public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;Ljava/lang/Long;Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Other; + public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Other;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;Ljava/lang/Long;Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Other; + public fun equals (Ljava/lang/Object;)Z + public fun getAmount ()Ljava/lang/Long; + public fun getCurrency ()Ljava/lang/String; + public fun getStarAmount ()Ldev/inmo/tgbotapi/types/payments/stars/StarAmount; + public fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Other$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Other$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Other; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Other;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Other$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$TON : dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid { + public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$TON$Companion; + public fun (JLdev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)V + public synthetic fun (JLdev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()J + public final fun component2 ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public final fun copy (JLdev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$TON; + public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$TON;JLdev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$TON; + public fun equals (Ljava/lang/Object;)Z + public fun getAmount ()Ljava/lang/Long; + public fun getCurrency ()Ljava/lang/String; + public fun getStarAmount ()Ldev/inmo/tgbotapi/types/payments/stars/StarAmount; + public fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$TON$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$TON$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$TON; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$TON;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$TON$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$XTR : dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid { + public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$XTR$Companion; + public fun (Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ldev/inmo/tgbotapi/types/payments/stars/StarAmount; + public final fun component2 ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public final fun copy (Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$XTR; + public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$XTR;Ldev/inmo/tgbotapi/types/payments/stars/StarAmount;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$XTR; + public fun equals (Ljava/lang/Object;)Z + public fun getAmount ()Ljava/lang/Long; + public fun getCurrency ()Ljava/lang/String; + public fun getStarAmount ()Ldev/inmo/tgbotapi/types/payments/stars/StarAmount; + public fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$XTR$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$XTR$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$XTR; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$XTR;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$XTR$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent { + public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded$Companion; + public fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)V + public synthetic fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ljava/lang/String; + public final fun component2 ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded; + public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded; + public fun equals (Ljava/lang/Object;)Z + public final fun getReason ()Ljava/lang/String; + public final fun getSuggestedPostMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final synthetic class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded$$serializer; + public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded;)V + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + public final class dev/inmo/tgbotapi/types/message/ChatEvents/voice/VideoChatEnded : dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/VideoChatEvent { public static final field Companion Ldev/inmo/tgbotapi/types/message/ChatEvents/voice/VideoChatEnded$Companion; public fun (I)V @@ -22406,6 +22801,87 @@ public final class dev/inmo/tgbotapi/types/message/ChatEvents/voice/VideoChatSta public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage { + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;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/PreviewChannelDirectMessagesChat;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/PreviewChannelDirectMessagesChat;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;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;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;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat; + 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 component16 ()Ljava/lang/Integer; + public final fun component2-APLFQys ()J + public final fun component3-hDmiKeI ()J + public final fun component4 ()Ldev/inmo/tgbotapi/types/chat/User; + public final fun component5-Wg0KzQs ()D + public final fun component6 ()Ldev/inmo/tgbotapi/types/message/MessageOrigin; + 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-_c83v58 (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;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;)Ldev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesContentMessageImpl; + public static synthetic fun copy-_c83v58$default (Ldev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesContentMessageImpl;Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;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;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesContentMessageImpl; + public fun equals (Ljava/lang/Object;)Z + public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String; + public fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat; + public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewForumChat; + public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat; + public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewPublicChat; + 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 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 getSenderBoostsCount ()Ljava/lang/Integer; + public fun getSenderBot ()Ldev/inmo/tgbotapi/types/chat/CommonBot; + public fun getThreadCreatingInfo ()Ldev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated; + public synthetic fun getThreadId-S3HF-10 ()Ldev/inmo/tgbotapi/types/MessageThreadId; + public fun getThreadId-hDmiKeI ()J + 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/CommonChannelDirectMessagesEventMessage : dev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage { + public synthetic fun (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent;DLkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1-APLFQys ()J + public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/User; + public final fun component3 ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat; + public final fun component4 ()Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent; + public final fun component5-Wg0KzQs ()D + public final fun copy-Bh39gk8 (JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent;D)Ldev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesEventMessage; + public static synthetic fun copy-Bh39gk8$default (Ldev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesEventMessage;JLdev/inmo/tgbotapi/types/chat/User;Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent;DILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesEventMessage; + public fun equals (Ljava/lang/Object;)Z + public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String; + public fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat; + public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat; + public fun getChatEvent ()Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent; + public synthetic fun getChatEvent ()Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent; + public fun getDate-Wg0KzQs ()D + public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; + public fun getMessageId-APLFQys ()J + public fun getMetaInfo-fV8YnZ8 ()Lkotlin/Triple; + 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/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 @@ -22701,6 +23177,63 @@ public final class dev/inmo/tgbotapi/types/message/ForwardInfoKt { public static final fun messageOrigin (Ldev/inmo/tgbotapi/types/message/ForwardInfo;)Ldev/inmo/tgbotapi/types/message/MessageOrigin; } +public final class dev/inmo/tgbotapi/types/message/FromChannelChannelDirectMessagesContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage { + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/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/String;ZLjava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/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/String;ZLjava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/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/String;ZLjava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V + public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/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/String;ZLjava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat; + 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 ()Ljava/lang/String; + public final fun component14-CsYhHCU ()Ljava/lang/String; + public final fun component15 ()Z + public final fun component16 ()Ljava/lang/Integer; + public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat; + public final fun component3-APLFQys ()J + public final fun component4-hDmiKeI ()J + public final fun component5-Wg0KzQs ()D + public final fun component6 ()Ldev/inmo/tgbotapi/types/message/MessageOrigin; + 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-T1kMFck (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/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/String;ZLjava/lang/Integer;)Ldev/inmo/tgbotapi/types/message/FromChannelChannelDirectMessagesContentMessageImpl; + public static synthetic fun copy-T1kMFck$default (Ldev/inmo/tgbotapi/types/message/FromChannelChannelDirectMessagesContentMessageImpl;Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/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/String;ZLjava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/FromChannelChannelDirectMessagesContentMessageImpl; + public fun equals (Ljava/lang/Object;)Z + public fun getAuthorSignature ()Ljava/lang/String; + public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String; + public fun getChannel ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat; + public fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat; + public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewForumChat; + public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewGroupChat; + public synthetic fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewPublicChat; + 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 getFromOffline ()Z + 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 getSenderChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat; + public synthetic fun getSenderChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChat; + public fun getThreadCreatingInfo ()Ldev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated; + public synthetic fun getThreadId-S3HF-10 ()Ldev/inmo/tgbotapi/types/MessageThreadId; + public fun getThreadId-hDmiKeI ()J + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + public final class dev/inmo/tgbotapi/types/message/FromChannelForumContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/FromChannelForumContentMessage { public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/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/String;ZLjava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V public synthetic fun (Ldev/inmo/tgbotapi/types/chat/PreviewForumChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/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/String;ZLjava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V @@ -23127,109 +23660,6 @@ public final class dev/inmo/tgbotapi/types/message/RawMessageEntityKt { public static synthetic fun toRawMessageEntities$default (Ljava/util/List;IILjava/lang/Object;)Ljava/util/List; } -public final class dev/inmo/tgbotapi/types/message/SuggestedPostInfo { - public static final field Companion Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$Companion; - public fun (Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ljava/lang/Integer;)V - public synthetic fun (Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State; - public final fun component2 ()Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice; - public final fun component3 ()Ljava/lang/Integer; - public final fun copy (Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ljava/lang/Integer;)Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo;Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State;Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice;Ljava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo; - public fun equals (Ljava/lang/Object;)Z - public final fun getPrice ()Ldev/inmo/tgbotapi/types/payments/SuggestedPostPrice; - public final fun getSendDate ()Ljava/lang/Integer; - public final fun getState ()Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final synthetic class dev/inmo/tgbotapi/types/message/SuggestedPostInfo$$serializer : kotlinx/serialization/internal/GeneratedSerializer { - public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$$serializer; - public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; - public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public final fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo;)V - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/SuggestedPostInfo$Companion { - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - -public abstract interface class dev/inmo/tgbotapi/types/message/SuggestedPostInfo$State { - public static final field Companion Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Companion; - public abstract fun getName ()Ljava/lang/String; -} - -public final class dev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Approved : dev/inmo/tgbotapi/types/message/SuggestedPostInfo$State { - public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Approved; - public fun equals (Ljava/lang/Object;)Z - public fun getName ()Ljava/lang/String; - public fun hashCode ()I - public final fun serializer ()Lkotlinx/serialization/KSerializer; - public fun toString ()Ljava/lang/String; -} - -public final class dev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Companion : kotlinx/serialization/KSerializer { - public fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public fun serialize (Lkotlinx/serialization/encoding/Encoder;Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State;)V - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Declined : dev/inmo/tgbotapi/types/message/SuggestedPostInfo$State { - public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Declined; - public fun equals (Ljava/lang/Object;)Z - public fun getName ()Ljava/lang/String; - public fun hashCode ()I - public final fun serializer ()Lkotlinx/serialization/KSerializer; - public fun toString ()Ljava/lang/String; -} - -public final class dev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Pending : dev/inmo/tgbotapi/types/message/SuggestedPostInfo$State { - public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Pending; - public fun equals (Ljava/lang/Object;)Z - public fun getName ()Ljava/lang/String; - public fun hashCode ()I - public final fun serializer ()Lkotlinx/serialization/KSerializer; - public fun toString ()Ljava/lang/String; -} - -public final class dev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Unknown : dev/inmo/tgbotapi/types/message/SuggestedPostInfo$State { - public static final field Companion Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Unknown$Companion; - public static final synthetic fun box-impl (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Unknown; - public static fun constructor-impl (Ljava/lang/String;)Ljava/lang/String; - public fun equals (Ljava/lang/Object;)Z - public static fun equals-impl (Ljava/lang/String;Ljava/lang/Object;)Z - public static final fun equals-impl0 (Ljava/lang/String;Ljava/lang/String;)Z - public fun getName ()Ljava/lang/String; - public fun hashCode ()I - public static fun hashCode-impl (Ljava/lang/String;)I - public fun toString ()Ljava/lang/String; - public static fun toString-impl (Ljava/lang/String;)Ljava/lang/String; - public final synthetic fun unbox-impl ()Ljava/lang/String; -} - -public final synthetic class dev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Unknown$$serializer : kotlinx/serialization/internal/GeneratedSerializer { - public static final field INSTANCE Ldev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Unknown$$serializer; - public final fun childSerializers ()[Lkotlinx/serialization/KSerializer; - public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; - public final fun deserialize-FPA7VNI (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/String; - public final fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; - public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V - public final fun serialize-4zEyElE (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/String;)V - public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; -} - -public final class dev/inmo/tgbotapi/types/message/SuggestedPostInfo$State$Unknown$Companion { - public final fun serializer ()Lkotlinx/serialization/KSerializer; -} - public final class dev/inmo/tgbotapi/types/message/SuggestedPostParameters { public static final field Companion Ldev/inmo/tgbotapi/types/message/SuggestedPostParameters$Companion; public fun ()V @@ -23380,6 +23810,29 @@ public final class dev/inmo/tgbotapi/types/message/abstracts/ChannelContentMessa public static fun getUser (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelContentMessage;)Ldev/inmo/tgbotapi/types/chat/User; } +public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage : dev/inmo/tgbotapi/types/message/abstracts/ForumContentMessage, dev/inmo/tgbotapi/types/message/abstracts/PossiblyTopicMessage { + public abstract fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat; +} + +public final class dev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage$DefaultImpls { + public static fun getBusinessConnectionId-nXr5wdE (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)Ljava/lang/String; + public static fun getForwardInfo (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/ForwardInfo; + public static fun getForwardable (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)Z + public static fun getMetaInfo-fV8YnZ8 (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)Lkotlin/Triple; + public static fun getReplyTo (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/abstracts/Message; + public static fun getThreadCreatingInfo (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated; +} + +public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage : dev/inmo/tgbotapi/types/message/abstracts/GroupEventMessage { + public abstract fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat; +} + +public final class dev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage$DefaultImpls { + public static fun getBusinessConnectionId-nXr5wdE (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage;)Ljava/lang/String; + public static fun getMetaInfo-fV8YnZ8 (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage;)Lkotlin/Triple; + public static fun getUser (Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage;)Ldev/inmo/tgbotapi/types/chat/User; +} + public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/ChatEventMessage : dev/inmo/tgbotapi/types/message/abstracts/AccessibleMessage { public abstract fun getChatEvent ()Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent; } @@ -23389,6 +23842,19 @@ public final class dev/inmo/tgbotapi/types/message/abstracts/ChatEventMessage$De public static fun getMetaInfo-fV8YnZ8 (Ldev/inmo/tgbotapi/types/message/abstracts/ChatEventMessage;)Lkotlin/Triple; } +public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage : dev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage, dev/inmo/tgbotapi/types/message/abstracts/FromUserMessage, dev/inmo/tgbotapi/types/message/abstracts/PotentiallyFromUserGroupContentMessage { +} + +public final class dev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage$DefaultImpls { + public static fun getBusinessConnectionId-nXr5wdE (Ldev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage;)Ljava/lang/String; + public static fun getForwardInfo (Ldev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/ForwardInfo; + public static fun getForwardable (Ldev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage;)Z + public static fun getMetaInfo-fV8YnZ8 (Ldev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage;)Lkotlin/Triple; + public static fun getReplyTo (Ldev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/abstracts/Message; + public static fun getThreadCreatingInfo (Ldev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated; + public static fun getUser (Ldev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/chat/User; +} + 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 { } @@ -23464,6 +23930,19 @@ public final class dev/inmo/tgbotapi/types/message/abstracts/ForumContentMessage public static fun getThreadCreatingInfo (Ldev/inmo/tgbotapi/types/message/abstracts/ForumContentMessage;)Ldev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated; } +public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage : dev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage, dev/inmo/tgbotapi/types/message/abstracts/FromChannelGroupContentMessage { +} + +public final class dev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage$DefaultImpls { + public static fun getBusinessConnectionId-nXr5wdE (Ldev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage;)Ljava/lang/String; + public static fun getForwardInfo (Ldev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/ForwardInfo; + public static fun getForwardable (Ldev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage;)Z + public static fun getMetaInfo-fV8YnZ8 (Ldev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage;)Lkotlin/Triple; + public static fun getReplyTo (Ldev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/abstracts/Message; + public static fun getSenderChat (Ldev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat; + public static fun getThreadCreatingInfo (Ldev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage;)Ldev/inmo/tgbotapi/types/message/ChatEvents/forum/ForumTopicCreated; +} + public abstract interface class dev/inmo/tgbotapi/types/message/abstracts/FromChannelForumContentMessage : dev/inmo/tgbotapi/types/message/abstracts/ForumContentMessage, dev/inmo/tgbotapi/types/message/abstracts/FromChannelGroupContentMessage { } diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt index 42792b923b..b254ebc12e 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/Common.kt @@ -291,6 +291,7 @@ const val canSendPaidMediaField = "can_send_paid_media" const val activeUsernamesField = "active_usernames" const val customTitleField = "custom_title" const val optionIdsField = "option_ids" +const val parentChatField = "parent_chat" const val voterChatField = "voter_chat" const val ipAddressField = "ip_address" const val linkedChatIdField = "linked_chat_id" @@ -535,6 +536,7 @@ const val convertStarCountField = "convert_star_count" const val prepaidUpgradeStarCountField = "prepaid_upgrade_star_count" const val canBeUpgradedField = "can_be_upgraded" const val isPrivateField = "is_private" +const val isDirectMessagesField = "is_direct_messages" const val nextTransferDateField = "next_transfer_date" const val transferStarCountField = "transfer_star_count" const val lastResaleStarCountField = "last_resale_star_count" diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Abstracts.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Abstracts.kt index 5e6dd6c888..1d3733d3e5 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Abstracts.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Abstracts.kt @@ -53,6 +53,13 @@ sealed interface SupergroupChat : GroupChat, SuperPublicChat @Serializable(ChatSerializer::class) sealed interface ForumChat : SupergroupChat +@Suppress("SERIALIZER_TYPE_INCOMPATIBLE") +@Serializable(ChatSerializer::class) +sealed interface ChannelDirectMessagesChat : ForumChat { + override val isDirectMessages: Boolean + get() = true +} + @Suppress("SERIALIZER_TYPE_INCOMPATIBLE") @Serializable(ChatSerializer::class) sealed interface PossiblyPremiumChat : Chat { @@ -69,4 +76,6 @@ sealed interface AbleToAddInAttachmentMenuChat : Chat { @ClassCastsIncluded(excludeRegex = ".*Impl") sealed interface Chat { val id: IdChatIdentifier + val isDirectMessages: Boolean + get() = false } diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatSerializers.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatSerializers.kt index 7c65b7d106..ad3d36725c 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatSerializers.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ChatSerializers.kt @@ -123,16 +123,20 @@ object PreviewChatSerializer : KSerializer { val type = decodedJson[typeField] ?.jsonPrimitive ?.content ?.asChatType val isForum = decodedJson[isForumField] ?.jsonPrimitive ?.booleanOrNull == true + val isChannelDirectMessages = decodedJson[isDirectMessagesField] ?.jsonPrimitive ?.booleanOrNull == true val original = decodedJson[originField] return when (type) { ChatType.Sender -> formatter.decodeFromJsonElement(PrivateChatImpl.serializer(), decodedJson) ChatType.Private -> formatter.decodeFromJsonElement(PrivateChatImpl.serializer(), decodedJson) ChatType.Group -> formatter.decodeFromJsonElement(GroupChatImpl.serializer(), decodedJson) - ChatType.Supergroup -> if (isForum) { - formatter.decodeFromJsonElement(ForumChatImpl.serializer(), decodedJson) - } else { - formatter.decodeFromJsonElement(SupergroupChatImpl.serializer(), decodedJson) + ChatType.Supergroup -> { + @Suppress("SimplifyBooleanWithConstants") + when { + isForum == false -> formatter.decodeFromJsonElement(SupergroupChatImpl.serializer(), decodedJson) + isChannelDirectMessages -> formatter.decodeFromJsonElement(ChannelDirectMessagesChatImpl.serializer(), decodedJson) + else -> formatter.decodeFromJsonElement(ForumChatImpl.serializer(), decodedJson) + } } ChatType.Channel -> formatter.decodeFromJsonElement(ChannelChatImpl.serializer(), decodedJson) is ChatType.Unknown -> UnknownChatType( @@ -156,6 +160,7 @@ object PreviewChatSerializer : KSerializer { is GroupChatImpl -> GroupChatImpl.serializer().serialize(encoder, value) is SupergroupChatImpl -> SupergroupChatImpl.serializer().serialize(encoder, value) is ForumChatImpl -> ForumChatImpl.serializer().serialize(encoder, value) + is ChannelDirectMessagesChatImpl -> ChannelDirectMessagesChatImpl.serializer().serialize(encoder, value) is ChannelChatImpl -> ChannelChatImpl.serializer().serialize(encoder, value) is CommonBot -> CommonBot.serializer().serialize(encoder, value) is CommonUser -> CommonUser.serializer().serialize(encoder, value) @@ -174,16 +179,20 @@ sealed class ExtendedChatSerializer : KSerializer { val type = decodedJson[typeField] ?.jsonPrimitive ?.content ?.asChatType val isForum = decodedJson[isForumField] ?.jsonPrimitive ?.booleanOrNull == true + val isChannelDirectMessages = decodedJson[isDirectMessagesField] ?.jsonPrimitive ?.booleanOrNull == true val original = decodedJson[originField] return when (type) { ChatType.Sender -> formatter.decodeFromJsonElement(ExtendedPrivateChatImpl.serializer(), decodedJson) ChatType.Private -> formatter.decodeFromJsonElement(ExtendedPrivateChatImpl.serializer(), decodedJson) ChatType.Group -> formatter.decodeFromJsonElement(ExtendedGroupChatImpl.serializer(), decodedJson) - ChatType.Supergroup -> if (isForum) { - formatter.decodeFromJsonElement(ExtendedForumChatImpl.serializer(), decodedJson) - } else { - formatter.decodeFromJsonElement(ExtendedSupergroupChatImpl.serializer(), decodedJson) + ChatType.Supergroup -> { + @Suppress("SimplifyBooleanWithConstants") + when { + isForum == false -> formatter.decodeFromJsonElement(ExtendedSupergroupChatImpl.serializer(), decodedJson) + isChannelDirectMessages -> formatter.decodeFromJsonElement(ExtendedChannelDirectMessagesChatImpl.serializer(), decodedJson) + else -> formatter.decodeFromJsonElement(ExtendedForumChatImpl.serializer(), decodedJson) + } } ChatType.Channel -> formatter.decodeFromJsonElement(ExtendedChannelChatImpl.serializer(), decodedJson) is ChatType.Unknown -> UnknownExtendedChat( @@ -207,6 +216,7 @@ sealed class ExtendedChatSerializer : KSerializer { is ExtendedGroupChatImpl -> ExtendedGroupChatImpl.serializer().serialize(encoder, value) is ExtendedSupergroupChatImpl -> ExtendedSupergroupChatImpl.serializer().serialize(encoder, value) is ExtendedForumChatImpl -> ExtendedForumChatImpl.serializer().serialize(encoder, value) + is ExtendedChannelDirectMessagesChatImpl -> ExtendedChannelDirectMessagesChatImpl.serializer().serialize(encoder, value) is ExtendedChannelChatImpl -> ExtendedChannelChatImpl.serializer().serialize(encoder, value) is ExtendedBot -> ExtendedBot.serializer().serialize(encoder, value) is UnknownExtendedChat -> JsonObject.serializer().serialize(encoder, value.rawJson) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt index 2e39f454ad..ba73ac90a7 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Extended.kt @@ -10,6 +10,7 @@ import dev.inmo.tgbotapi.types.message.abstracts.Message import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializeOnlySerializer import dev.inmo.tgbotapi.types.reactions.Reaction import dev.inmo.tgbotapi.utils.RiskFeature +import kotlinx.serialization.EncodeDefault import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import kotlinx.serialization.json.JsonObject @@ -305,6 +306,83 @@ data class ExtendedForumChatImpl( override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(), ) : ExtendedForumChat +@Serializable +@RiskFeature("This class is a subject of changes. It is better to use ExtendedForumChat due") +data class ExtendedChannelDirectMessagesChatImpl( + @Suppress("SERIALIZER_TYPE_INCOMPATIBLE") + @SerialName(idField) + override val id: IdChatIdentifier, + @SerialName(titleField) + override val title: String, + @Suppress("SERIALIZER_TYPE_INCOMPATIBLE") + @SerialName(parentChatField) + override val channelChat: PreviewChannelChat, + @Suppress("SERIALIZER_TYPE_INCOMPATIBLE") + @SerialName(usernameField) + override val username: Username? = null, + @Suppress("SERIALIZER_TYPE_INCOMPATIBLE") + @SerialName(activeUsernamesField) + override val activeUsernames: List = emptyList(), + @SerialName(photoField) + override val chatPhoto: ChatPhoto? = null, + @SerialName(permissionsField) + override val permissions: ChatPermissions, + @SerialName(descriptionField) + override val description: String = "", + @SerialName(inviteLinkField) + override val inviteLink: String? = null, + @SerialName(pinnedMessageField) + @Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class) + override val pinnedMessage: Message? = null, + @SerialName(stickerSetNameFullField) + override val stickerSetName: StickerSetName? = null, + @SerialName(slowModeDelayField) + override val slowModeDelay: Long? = null, + @SerialName(canSetStickerSetField) + override val canSetStickerSet: Boolean = false, + @Suppress("SERIALIZER_TYPE_INCOMPATIBLE") + @SerialName(linkedChatIdField) + override val linkedChannelChatId: IdChatIdentifier? = null, + @SerialName(locationField) + override val location: ChatLocation? = null, + @SerialName(joinToSendMessagesField) + override val requiresJoinForMessaging: Boolean = false, + @SerialName(joinByRequestField) + override val requireAdminApproveToJoin: Boolean = false, + @SerialName(hasAggressiveAntiSpamEnabledField) + override val isAggressiveAntiSpamEnabled: Boolean = false, + @SerialName(hasHiddenMembersField) + override val membersHidden: Boolean = false, + @SerialName(availableReactionsField) + override val availableReactions: List? = null, + @SerialName(emojiStatusCustomEmojiIdField) + override val statusEmojiId: CustomEmojiId? = null, + @SerialName(emojiStatusExpirationDateField) + override val statusEmojiExpiration: TelegramDate? = null, + @SerialName(accentColorIdField) + override val accentColorId: ColorId = ColorId(0), + @SerialName(profileAccentColorIdField) + override val profileAccentColorId: ColorId? = null, + @SerialName(backgroundCustomEmojiIdField) + override val backgroundCustomEmojiId: CustomEmojiId? = null, + @SerialName(profileBackgroundCustomEmojiIdField) + override val profileBackgroundCustomEmojiId: CustomEmojiId? = null, + @SerialName(hasVisibleHistoryField) + override val newMembersSeeHistory: Boolean = false, + @SerialName(unrestrictBoostsCountField) + override val unrestrictBoostsCount: Int? = null, + @SerialName(customEmojiStickerSetNameField) + override val customEmojiStickerSetName: StickerSetName? = null, + @SerialName(maxReactionCountField) + override val maxReactionsCount: Int = 3, + @SerialName(acceptedGiftTypesField) + override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(), +) : ExtendedChannelDirectMessagesChat { + @SerialName(isDirectMessagesField) + @EncodeDefault + override val isDirectMessages: Boolean = true +} + @Serializable data class ExtendedBot( @Suppress("SERIALIZER_TYPE_INCOMPATIBLE") diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ExtendedAbstracts.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ExtendedAbstracts.kt index 090ad7ae1a..5c685b4d54 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ExtendedAbstracts.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/ExtendedAbstracts.kt @@ -114,6 +114,12 @@ sealed interface ExtendedSupergroupChat : SupergroupChat, ExtendedGroupChat, Ext @Serializable(ExtendedChatSerializer.Companion::class) sealed interface ExtendedForumChat : ExtendedSupergroupChat, ForumChat +@Suppress("SERIALIZER_TYPE_INCOMPATIBLE") +@Serializable(PreviewChatSerializer::class) +sealed interface ExtendedChannelDirectMessagesChat : ExtendedForumChat, ChannelDirectMessagesChat { + val channelChat: PreviewChannelChat +} + @Suppress("SERIALIZER_TYPE_INCOMPATIBLE") @Serializable(ExtendedChatSerializer.Companion::class) sealed interface ExtendedChatWithUsername : UsernameChat, ExtendedChat { diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Impls.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Impls.kt index 50631f0b64..931a838d94 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Impls.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/Impls.kt @@ -5,6 +5,7 @@ import dev.inmo.micro_utils.language_codes.IetfLangSerializer import dev.inmo.tgbotapi.types.* import dev.inmo.tgbotapi.types.abstracts.WithOptionalLanguageCode import dev.inmo.tgbotapi.utils.RiskFeature +import kotlinx.serialization.EncodeDefault import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @@ -70,6 +71,23 @@ data class ForumChatImpl( override val username: Username? = null ) : PreviewForumChat +@Serializable +@RiskFeature("This class is a subject of changes. It is better to use ForumChat due") +data class ChannelDirectMessagesChatImpl( + @Suppress("SERIALIZER_TYPE_INCOMPATIBLE") + @SerialName(idField) + override val id: IdChatIdentifier, + @SerialName(titleField) + override val title: String, + @Suppress("SERIALIZER_TYPE_INCOMPATIBLE") + @SerialName(usernameField) + override val username: Username? = null +) : PreviewChannelDirectMessagesChat { + @SerialName(isDirectMessagesField) + @EncodeDefault + override val isDirectMessages: Boolean = true +} + @Serializable @RiskFeature("This class is a subject of changes. It is better to use ChannelChat due") data class ChannelChatImpl( diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/PreviewAbstracts.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/PreviewAbstracts.kt index 16c98e720d..9f6bf1afe9 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/PreviewAbstracts.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/chat/PreviewAbstracts.kt @@ -40,3 +40,7 @@ sealed interface PreviewSupergroupChat : PreviewGroupChat, PreviewSuperPublicCha @Suppress("SERIALIZER_TYPE_INCOMPATIBLE") @Serializable(PreviewChatSerializer::class) sealed interface PreviewForumChat : PreviewSupergroupChat, ForumChat + +@Suppress("SERIALIZER_TYPE_INCOMPATIBLE") +@Serializable(PreviewChatSerializer::class) +sealed interface PreviewChannelDirectMessagesChat : PreviewForumChat, ChannelDirectMessagesChat diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent.kt index e8073cf95d..f18dd1109e 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent.kt @@ -1,3 +1,3 @@ package dev.inmo.tgbotapi.types.message.ChatEvents.abstracts -interface ChannelDirectMessagesEvent : SupergroupEvent +interface ChannelDirectMessagesEvent : ForumEvent diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed.kt similarity index 76% rename from tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed.kt rename to tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed.kt index fc87158ca6..cd2a4228ef 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApprovalFailed.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed.kt @@ -1,8 +1,7 @@ -package dev.inmo.tgbotapi.types.message.ChatEvents +package dev.inmo.tgbotapi.types.message.ChatEvents.suggested import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelDirectMessagesEvent -import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.CommonEvent -import dev.inmo.tgbotapi.types.message.abstracts.Message +import dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesContentMessage import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializeOnlySerializer import dev.inmo.tgbotapi.types.payments.SuggestedPostPrice import dev.inmo.tgbotapi.types.suggestedPostMessageField @@ -16,5 +15,5 @@ data class SuggestedPostApprovalFailed( val price: SuggestedPostPrice, @SerialName(suggestedPostMessageField) @Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class) - val suggestedPostMessage: Message? = null, + val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null, ) : ChannelDirectMessagesEvent diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved.kt similarity index 78% rename from tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved.kt rename to tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved.kt index c33150144e..4147b8f2f1 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostApproved.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved.kt @@ -1,9 +1,8 @@ -package dev.inmo.tgbotapi.types.message.ChatEvents +package dev.inmo.tgbotapi.types.message.ChatEvents.suggested import dev.inmo.tgbotapi.types.TelegramDate import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelDirectMessagesEvent -import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.CommonEvent -import dev.inmo.tgbotapi.types.message.abstracts.Message +import dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesContentMessage import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializeOnlySerializer import dev.inmo.tgbotapi.types.payments.SuggestedPostPrice import dev.inmo.tgbotapi.types.suggestedPostMessageField @@ -18,7 +17,7 @@ data class SuggestedPostApproved( val sendDate: TelegramDate, @SerialName(suggestedPostMessageField) @Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class) - val suggestedPostMessage: Message? = null, + val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null, @SerialName(priceField) val price: SuggestedPostPrice? = null, ) : ChannelDirectMessagesEvent diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined.kt similarity index 73% rename from tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined.kt rename to tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined.kt index ebaa259a21..933338ba46 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostDeclined.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined.kt @@ -1,10 +1,9 @@ -package dev.inmo.tgbotapi.types.message.ChatEvents +package dev.inmo.tgbotapi.types.message.ChatEvents.suggested -import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.CommonEvent -import dev.inmo.tgbotapi.types.message.abstracts.Message import dev.inmo.tgbotapi.types.suggestedPostMessageField import dev.inmo.tgbotapi.types.commentField import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelDirectMessagesEvent +import dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesContentMessage import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializeOnlySerializer import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @@ -13,7 +12,7 @@ import kotlinx.serialization.Serializable data class SuggestedPostDeclined( @SerialName(suggestedPostMessageField) @Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class) - val suggestedPostMessage: Message? = null, + val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null, @SerialName(commentField) val comment: String? = null ) : ChannelDirectMessagesEvent diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/SuggestedPostInfo.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo.kt similarity index 88% rename from tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/SuggestedPostInfo.kt rename to tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo.kt index 80868b68dc..0ad1a81867 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/SuggestedPostInfo.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo.kt @@ -1,12 +1,14 @@ -package dev.inmo.tgbotapi.types.message +package dev.inmo.tgbotapi.types.message.ChatEvents.suggested +import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelDirectMessagesEvent import dev.inmo.tgbotapi.types.payments.SuggestedPostPrice -import dev.inmo.tgbotapi.types.stateField import dev.inmo.tgbotapi.types.priceField import dev.inmo.tgbotapi.types.sendDateField +import dev.inmo.tgbotapi.types.stateField import kotlinx.serialization.KSerializer import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable +import kotlinx.serialization.descriptors.PrimitiveKind import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.Decoder @@ -21,7 +23,7 @@ data class SuggestedPostInfo( val price: SuggestedPostPrice? = null, @SerialName(sendDateField) val sendDate: Int? = null -) { +) : ChannelDirectMessagesEvent { @Serializable(State.Companion::class) sealed interface State { val name: String @@ -37,7 +39,7 @@ data class SuggestedPostInfo( companion object : KSerializer { override val descriptor: SerialDescriptor = - PrimitiveSerialDescriptor("SuggestedPostInfo.State", kotlinx.serialization.descriptors.PrimitiveKind.STRING) + PrimitiveSerialDescriptor("SuggestedPostInfo.State", PrimitiveKind.STRING) override fun serialize(encoder: Encoder, value: State) { encoder.encodeString(value.name) @@ -53,4 +55,4 @@ data class SuggestedPostInfo( } } } -} +} \ No newline at end of file diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid.kt similarity index 88% rename from tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid.kt rename to tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid.kt index add7012ed5..160ae07108 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostPaid.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid.kt @@ -1,13 +1,11 @@ -package dev.inmo.tgbotapi.types.message.ChatEvents +package dev.inmo.tgbotapi.types.message.ChatEvents.suggested -import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.CommonEvent -import dev.inmo.tgbotapi.types.message.abstracts.Message import dev.inmo.tgbotapi.types.payments.stars.StarAmount import dev.inmo.tgbotapi.types.suggestedPostMessageField import dev.inmo.tgbotapi.types.currencyField import dev.inmo.tgbotapi.types.amountField import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelDirectMessagesEvent -import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializationStrategyClass +import dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesContentMessage import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializeOnlySerializer import dev.inmo.tgbotapi.types.payments.abstracts.Currencied import dev.inmo.tgbotapi.types.payments.abstracts.Currency @@ -26,7 +24,7 @@ import kotlinx.serialization.encoding.Encoder sealed interface SuggestedPostPaid : Currencied, ChannelDirectMessagesEvent { val amount: Long? val starAmount: StarAmount? - val suggestedPostMessage: Message? + val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? @Serializable data class XTR( @@ -34,7 +32,7 @@ sealed interface SuggestedPostPaid : Currencied, ChannelDirectMessagesEvent { override val starAmount: StarAmount, @SerialName(suggestedPostMessageField) @Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class) - override val suggestedPostMessage: Message? = null, + override val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null, ) : SuggestedPostPaid { override val amount: Long? get() = null @@ -47,7 +45,7 @@ sealed interface SuggestedPostPaid : Currencied, ChannelDirectMessagesEvent { override val amount: Long, @SerialName(suggestedPostMessageField) @Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class) - override val suggestedPostMessage: Message? = null + override val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null ) : SuggestedPostPaid { override val starAmount: StarAmount? get() = null @@ -60,7 +58,7 @@ sealed interface SuggestedPostPaid : Currencied, ChannelDirectMessagesEvent { override val currency: Currency, @SerialName(suggestedPostMessageField) @Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class) - override val suggestedPostMessage: Message? = null, + override val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null, @SerialName(amountField) override val amount: Long? = null, @SerialName(starAmountField) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded.kt similarity index 73% rename from tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded.kt rename to tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded.kt index 85dffe5459..14bff8f0a2 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/SuggestedPostRefunded.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded.kt @@ -1,8 +1,7 @@ -package dev.inmo.tgbotapi.types.message.ChatEvents +package dev.inmo.tgbotapi.types.message.ChatEvents.suggested import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelDirectMessagesEvent -import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.CommonEvent -import dev.inmo.tgbotapi.types.message.abstracts.Message +import dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesContentMessage import dev.inmo.tgbotapi.types.message.abstracts.TelegramBotAPIMessageDeserializeOnlySerializer import dev.inmo.tgbotapi.types.suggestedPostMessageField import dev.inmo.tgbotapi.types.reasonField @@ -15,5 +14,5 @@ data class SuggestedPostRefunded( val reason: String, @SerialName(suggestedPostMessageField) @Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class) - val suggestedPostMessage: Message? = null + val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null ) : ChannelDirectMessagesEvent diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesEventMessage.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesEventMessage.kt new file mode 100644 index 0000000000..11f73e507f --- /dev/null +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesEventMessage.kt @@ -0,0 +1,20 @@ +package dev.inmo.tgbotapi.types.message + +import korlibs.time.DateTime +import dev.inmo.tgbotapi.types.MessageId +import dev.inmo.tgbotapi.types.chat.PreviewChannelDirectMessagesChat +import dev.inmo.tgbotapi.types.chat.PreviewSupergroupChat +import dev.inmo.tgbotapi.types.chat.User +import dev.inmo.tgbotapi.types.chat.SupergroupChat +import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelDirectMessagesEvent +import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.SupergroupEvent +import dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesEventMessage +import dev.inmo.tgbotapi.types.message.abstracts.SupergroupEventMessage + +data class CommonChannelDirectMessagesEventMessage( + override val messageId: MessageId, + override val from: User, + override val chat: PreviewChannelDirectMessagesChat, + override val chatEvent: T, + override val date: DateTime +) : ChannelDirectMessagesEventMessage 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 4da9065c32..3d55fc7828 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 @@ -276,6 +276,62 @@ data class FromChannelForumContentMessageImpl( ) } +data class FromChannelChannelDirectMessagesContentMessageImpl( + override val chat: PreviewChannelDirectMessagesChat, + override val channel: PreviewChannelChat, + override val messageId: MessageId, + override val threadId: MessageThreadId, + override val date: DateTime, + override val forwardOrigin: MessageOrigin?, + override val editDate: DateTime?, + override val hasProtectedContent: Boolean, + override val replyInfo: ReplyInfo?, + override val replyMarkup: InlineKeyboardMarkup?, + override val content: T, + override val senderBot: CommonBot?, + override val authorSignature: AuthorSignature?, + override val mediaGroupId: MediaGroupId?, + override val fromOffline: Boolean, + @SerialName(paidMessageStarCountField) + override val cost: Int? = null, +) : FromChannelChannelDirectMessagesContentMessage { + constructor( + chat: PreviewChannelDirectMessagesChat, + channel: PreviewChannelChat, + messageId: MessageId, + threadId: MessageThreadId, + date: DateTime, + forwardInfo: ForwardInfo, + editDate: DateTime?, + hasProtectedContent: Boolean, + replyTo: AccessibleMessage?, + replyMarkup: InlineKeyboardMarkup?, + content: T, + senderBot: CommonBot?, + authorSignature: AuthorSignature?, + mediaGroupId: MediaGroupId?, + fromOffline: Boolean, + cost: Int? = null, + ) : this( + chat = chat, + channel = channel, + messageId = messageId, + threadId = threadId, + date = date, + forwardOrigin = forwardInfo.messageOrigin(), + editDate = editDate, + hasProtectedContent = hasProtectedContent, + replyInfo = replyTo ?.let { ReplyInfo.Internal(it) }, + replyMarkup = replyMarkup, + content = content, + senderBot = senderBot, + authorSignature = authorSignature, + mediaGroupId = mediaGroupId, + fromOffline = fromOffline, + cost = cost, + ) +} + data class AnonymousForumContentMessageImpl( override val chat: PreviewForumChat, override val messageId: MessageId, @@ -384,3 +440,60 @@ data class CommonForumContentMessageImpl( cost = cost, ) } + + +data class CommonChannelDirectMessagesContentMessageImpl( + override val chat: PreviewChannelDirectMessagesChat, + override val messageId: MessageId, + override val threadId: MessageThreadId, + override val from: User, + override val date: DateTime, + override val forwardOrigin: MessageOrigin?, + override val editDate: DateTime?, + override val hasProtectedContent: Boolean, + override val replyInfo: ReplyInfo?, + override val replyMarkup: InlineKeyboardMarkup?, + override val content: T, + override val senderBot: CommonBot?, + override val mediaGroupId: MediaGroupId?, + override val senderBoostsCount: Int?, + override val fromOffline: Boolean, + @SerialName(paidMessageStarCountField) + override val cost: Int? = null, +) : CommonChannelDirectMessagesContentMessage { + constructor( + chat: PreviewChannelDirectMessagesChat, + messageId: MessageId, + threadId: MessageThreadId, + from: User, + date: DateTime, + forwardInfo: ForwardInfo, + editDate: DateTime?, + hasProtectedContent: Boolean, + replyTo: AccessibleMessage?, + replyMarkup: InlineKeyboardMarkup?, + content: T, + senderBot: CommonBot?, + mediaGroupId: MediaGroupId?, + senderBoostsCount: Int?, + fromOffline: Boolean, + cost: Int? = null, + ) : this( + chat = chat, + messageId = messageId, + threadId = threadId, + from = from, + date = date, + forwardOrigin = forwardInfo.messageOrigin(), + editDate = editDate, + hasProtectedContent = hasProtectedContent, + replyInfo = replyTo ?.let { ReplyInfo.Internal(it) }, + replyMarkup = replyMarkup, + content = content, + senderBot = senderBot, + mediaGroupId = mediaGroupId, + senderBoostsCount = senderBoostsCount, + fromOffline = fromOffline, + cost = cost, + ) +} 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 1888c58182..77bc10f52f 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 @@ -27,6 +27,12 @@ import dev.inmo.tgbotapi.types.message.ChatEvents.forum.ForumTopicReopened import dev.inmo.tgbotapi.types.message.ChatEvents.forum.GeneralForumTopicHidden import dev.inmo.tgbotapi.types.message.ChatEvents.forum.GeneralForumTopicUnhidden import dev.inmo.tgbotapi.types.message.ChatEvents.forum.WriteAccessAllowed +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostApprovalFailed +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostApproved +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostDeclined +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostInfo +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostPaid +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostRefunded import dev.inmo.tgbotapi.types.message.ChatEvents.voice.* import dev.inmo.tgbotapi.types.message.abstracts.* import dev.inmo.tgbotapi.types.message.content.* @@ -183,6 +189,13 @@ internal data class RawMessage( // Channel direct messages private val direct_message_price_changed: ChannelDirectMessagesConfigurationChanged? = null, + // + private val suggested_post_approved: SuggestedPostApproved? = null, + private val suggested_post_approval_failed: SuggestedPostApprovalFailed? = null, + private val suggested_post_declined: SuggestedPostDeclined? = null, + private val suggested_post_paid: SuggestedPostPaid? = null, + private val suggested_post_refunded: SuggestedPostRefunded? = null, + private val suggested_post_info: SuggestedPostInfo? = null, // Gifts private val gift: GiftSentOrReceived.Regular? = null, private val unique_gift: GiftSentOrReceived.Unique? = null, @@ -316,6 +329,12 @@ internal data class RawMessage( checklist_tasks_done != null -> checklist_tasks_done checklist_tasks_added != null -> checklist_tasks_added direct_message_price_changed != null -> direct_message_price_changed + suggested_post_info != null -> suggested_post_info + suggested_post_approved != null -> suggested_post_approved + suggested_post_approval_failed != null -> suggested_post_approval_failed + suggested_post_declined != null -> suggested_post_declined + suggested_post_paid != null -> suggested_post_paid + suggested_post_refunded != null -> suggested_post_refunded else -> null } } @@ -345,6 +364,14 @@ internal data class RawMessage( chatEvent as? GroupEvent ?: throwWrongChatEvent(GroupChat::class, chatEvent), date.asDate ) + is PreviewChannelDirectMessagesChat -> CommonChannelDirectMessagesEventMessage( + messageId, + //TODO:: Check that all channel direct messages events coming with "from" field + checkedFrom ?: from ?: error("Channel direct messages events are expected to contain 'from' field"), + chat, + chatEvent as? ChannelDirectMessagesEvent ?: throwWrongChatEvent(PreviewChannelDirectMessagesChat::class, chatEvent), + date.asDate + ) is PreviewChannelChat -> ChannelEventMessage( messageId, chat, @@ -388,141 +415,268 @@ internal data class RawMessage( fromOffline = is_from_offline, cost = paid_star_count, ) - is PreviewForumChat -> if (messageThreadId != null) { - val chatId = ChatIdWithThreadId( - chat.id.chatId, - messageThreadId - ) - val actualForumChat = when (chat) { - is ForumChatImpl -> chat.copy(id = chatId) - } - when (sender_chat) { - is PreviewChannelChat -> FromChannelForumContentMessageImpl( - chat = actualForumChat, - channel = sender_chat, - messageId = messageId, - threadId = messageThreadId, - date = date.asDate, - forwardOrigin = forward_origin, - editDate = edit_date ?.asDate, - hasProtectedContent = has_protected_content == true, - replyInfo = replyInfo, - replyMarkup = reply_markup, - content = content, - senderBot = via_bot, - authorSignature = author_signature, - mediaGroupId = media_group_id, - fromOffline = is_from_offline, - cost = paid_star_count, - ) - is PreviewGroupChat -> AnonymousForumContentMessageImpl( - chat = actualForumChat, - messageId = messageId, - threadId = messageThreadId, - date = date.asDate, - forwardOrigin = forward_origin, - editDate = edit_date ?.asDate, - hasProtectedContent = has_protected_content == true, - replyInfo = replyInfo, - replyMarkup = reply_markup, - content = content, - senderBot = via_bot, - authorSignature = author_signature, - mediaGroupId = media_group_id, - fromOffline = is_from_offline, - cost = paid_star_count, - ) - null -> CommonForumContentMessageImpl( - chat = actualForumChat, - messageId = messageId, - threadId = messageThreadId, - from = checkedFrom ?: from ?: error("It is expected that in messages from non anonymous users and channels user must be specified"), - date = date.asDate, - forwardOrigin = forward_origin, - editDate = edit_date ?.asDate, - hasProtectedContent = has_protected_content == true, - replyInfo = replyInfo, - replyMarkup = reply_markup, - content = content, - senderBot = via_bot, - mediaGroupId = media_group_id, - senderBoostsCount = sender_boost_count, - fromOffline = is_from_offline, - cost = paid_star_count, - ) - } - } else { - when (sender_chat) { - is PreviewChannelChat -> if (is_automatic_forward == true) { - ConnectedFromChannelGroupContentMessageImpl( - chat = chat, - channel = sender_chat, - messageId = messageId, - date = date.asDate, - forwardOrigin = forward_origin, - editDate = edit_date ?.asDate, - hasProtectedContent = has_protected_content == true, - replyInfo = replyInfo, - replyMarkup = reply_markup, - content = content, - senderBot = via_bot, - authorSignature = author_signature, - mediaGroupId = media_group_id, - fromOffline = is_from_offline, - cost = paid_star_count, + is PreviewForumChat -> when(chat) { + is PreviewChannelDirectMessagesChat -> { + if (messageThreadId != null) { + val chatId = ChatIdWithThreadId( + chat.id.chatId, + messageThreadId ) + val actualForumChat = when (chat) { + is ChannelDirectMessagesChatImpl -> chat.copy(id = chatId) + } + when (sender_chat) { + is PreviewChannelChat -> FromChannelChannelDirectMessagesContentMessageImpl( + chat = actualForumChat, + channel = sender_chat, + messageId = messageId, + threadId = messageThreadId, + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + authorSignature = author_signature, + mediaGroupId = media_group_id, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + is PreviewGroupChat, + null -> CommonChannelDirectMessagesContentMessageImpl( + chat = actualForumChat, + messageId = messageId, + threadId = messageThreadId, + from = checkedFrom ?: from ?: error("It is expected that in direct channel messages from non anonymous channels user must be specified"), + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + mediaGroupId = media_group_id, + senderBoostsCount = sender_boost_count, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + } } else { - UnconnectedFromChannelGroupContentMessageImpl( - chat = chat, - channel = sender_chat, - messageId = messageId, - date = date.asDate, - forwardOrigin = forward_origin, - editDate = edit_date ?.asDate, - hasProtectedContent = has_protected_content == true, - replyInfo = replyInfo, - replyMarkup = reply_markup, - content = content, - senderBot = via_bot, - authorSignature = author_signature, - mediaGroupId = media_group_id, - fromOffline = is_from_offline, - cost = paid_star_count, - ) + when (sender_chat) { + is PreviewChannelChat -> if (is_automatic_forward == true) { + ConnectedFromChannelGroupContentMessageImpl( + chat = chat, + channel = sender_chat, + messageId = messageId, + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + authorSignature = author_signature, + mediaGroupId = media_group_id, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + } else { + UnconnectedFromChannelGroupContentMessageImpl( + chat = chat, + channel = sender_chat, + messageId = messageId, + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + authorSignature = author_signature, + mediaGroupId = media_group_id, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + } + is GroupChat -> AnonymousGroupContentMessageImpl( + chat = chat, + messageId = messageId, + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + authorSignature = author_signature, + mediaGroupId = media_group_id, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + null -> CommonGroupContentMessageImpl( + chat = chat, + messageId = messageId, + from = checkedFrom ?: from ?: error("It is expected that in messages from non anonymous users and channels user must be specified"), + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + mediaGroupId = media_group_id, + senderBoostsCount = sender_boost_count, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + } + } + } + is ForumChatImpl -> { + if (messageThreadId != null) { + val chatId = ChatIdWithThreadId( + chat.id.chatId, + messageThreadId + ) + val actualForumChat = when (chat) { + is ForumChatImpl -> chat.copy(id = chatId) + } + when (sender_chat) { + is PreviewChannelChat -> FromChannelForumContentMessageImpl( + chat = actualForumChat, + channel = sender_chat, + messageId = messageId, + threadId = messageThreadId, + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + authorSignature = author_signature, + mediaGroupId = media_group_id, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + is PreviewGroupChat -> AnonymousForumContentMessageImpl( + chat = actualForumChat, + messageId = messageId, + threadId = messageThreadId, + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + authorSignature = author_signature, + mediaGroupId = media_group_id, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + null -> CommonForumContentMessageImpl( + chat = actualForumChat, + messageId = messageId, + threadId = messageThreadId, + from = checkedFrom ?: from ?: error("It is expected that in messages from non anonymous users and channels user must be specified"), + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + mediaGroupId = media_group_id, + senderBoostsCount = sender_boost_count, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + } + } else { + when (sender_chat) { + is PreviewChannelChat -> if (is_automatic_forward == true) { + ConnectedFromChannelGroupContentMessageImpl( + chat = chat, + channel = sender_chat, + messageId = messageId, + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + authorSignature = author_signature, + mediaGroupId = media_group_id, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + } else { + UnconnectedFromChannelGroupContentMessageImpl( + chat = chat, + channel = sender_chat, + messageId = messageId, + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + authorSignature = author_signature, + mediaGroupId = media_group_id, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + } + is GroupChat -> AnonymousGroupContentMessageImpl( + chat = chat, + messageId = messageId, + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + authorSignature = author_signature, + mediaGroupId = media_group_id, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + null -> CommonGroupContentMessageImpl( + chat = chat, + messageId = messageId, + from = checkedFrom ?: from ?: error("It is expected that in messages from non anonymous users and channels user must be specified"), + date = date.asDate, + forwardOrigin = forward_origin, + editDate = edit_date ?.asDate, + hasProtectedContent = has_protected_content == true, + replyInfo = replyInfo, + replyMarkup = reply_markup, + content = content, + senderBot = via_bot, + mediaGroupId = media_group_id, + senderBoostsCount = sender_boost_count, + fromOffline = is_from_offline, + cost = paid_star_count, + ) + } } - is GroupChat -> AnonymousGroupContentMessageImpl( - chat = chat, - messageId = messageId, - date = date.asDate, - forwardOrigin = forward_origin, - editDate = edit_date ?.asDate, - hasProtectedContent = has_protected_content == true, - replyInfo = replyInfo, - replyMarkup = reply_markup, - content = content, - senderBot = via_bot, - authorSignature = author_signature, - mediaGroupId = media_group_id, - fromOffline = is_from_offline, - cost = paid_star_count, - ) - null -> CommonGroupContentMessageImpl( - chat = chat, - messageId = messageId, - from = checkedFrom ?: from ?: error("It is expected that in messages from non anonymous users and channels user must be specified"), - date = date.asDate, - forwardOrigin = forward_origin, - editDate = edit_date ?.asDate, - hasProtectedContent = has_protected_content == true, - replyInfo = replyInfo, - replyMarkup = reply_markup, - content = content, - senderBot = via_bot, - mediaGroupId = media_group_id, - senderBoostsCount = sender_boost_count, - fromOffline = is_from_offline, - cost = paid_star_count, - ) } } is PreviewGroupChat -> when (sender_chat) { diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage.kt new file mode 100644 index 0000000000..d631f7c81a --- /dev/null +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage.kt @@ -0,0 +1,11 @@ +package dev.inmo.tgbotapi.types.message.abstracts + +import dev.inmo.tgbotapi.types.chat.PreviewChannelDirectMessagesChat +import dev.inmo.tgbotapi.types.chat.PreviewGroupChat +import dev.inmo.tgbotapi.types.chat.PreviewSupergroupChat +import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelDirectMessagesEvent +import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.SupergroupEvent + +interface ChannelDirectMessagesEventMessage : GroupEventMessage { + override val chat: PreviewChannelDirectMessagesChat +} 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 6df8cf2d76..832b9b4558 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 @@ -22,6 +22,9 @@ sealed interface ForumContentMessage : GroupContentMessage) ?.chatEvent as? ForumTopicCreated } +sealed interface ChannelDirectMessagesContentMessage : ForumContentMessage, PossiblyTopicMessage { + override val chat: PreviewChannelDirectMessagesChat +} sealed interface FromChannelGroupContentMessage : GroupContentMessage, SignedMessage, WithSenderChatMessage { val channel: PreviewChannelChat @@ -41,9 +44,13 @@ interface CommonGroupContentMessage : GroupContentMessage interface FromChannelForumContentMessage : FromChannelGroupContentMessage, ForumContentMessage +interface FromChannelChannelDirectMessagesContentMessage : FromChannelGroupContentMessage, ChannelDirectMessagesContentMessage + interface AnonymousForumContentMessage : ForumContentMessage, SignedMessage, WithSenderChatMessage { override val senderChat: PreviewGroupChat get() = chat } interface CommonForumContentMessage : ForumContentMessage, PotentiallyFromUserGroupContentMessage, FromUserMessage + +interface CommonChannelDirectMessagesContentMessage : ChannelDirectMessagesContentMessage, PotentiallyFromUserGroupContentMessage, FromUserMessage 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 090ecf64ad..3382efc7ce 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 @@ -169,6 +169,24 @@ fun List>.asMedia fromOffline = sourceMessage.fromOffline, cost = sourceMessage.cost, ) + is CommonChannelDirectMessagesContentMessage -> CommonChannelDirectMessagesContentMessageImpl( + chat = sourceMessage.chat, + messageId = sourceMessage.messageId, + threadId = sourceMessage.threadId, + from = sourceMessage.user, + date = sourceMessage.date, + forwardOrigin = sourceMessage.forwardOrigin, + editDate = sourceMessage.editDate, + hasProtectedContent = sourceMessage.hasProtectedContent, + replyInfo = sourceMessage.replyInfo, + replyMarkup = sourceMessage.replyMarkup, + content = content, + senderBot = sourceMessage.senderBot, + mediaGroupId = sourceMessage.mediaGroupId, + senderBoostsCount = sourceMessage.senderBoostsCount, + fromOffline = sourceMessage.fromOffline, + cost = sourceMessage.cost, + ) is FromChannelForumContentMessage -> FromChannelForumContentMessageImpl( chat = sourceMessage.chat, channel = sourceMessage.channel, @@ -187,5 +205,24 @@ fun List>.asMedia fromOffline = sourceMessage.fromOffline, cost = sourceMessage.cost, ) + + is FromChannelChannelDirectMessagesContentMessage -> FromChannelChannelDirectMessagesContentMessageImpl( + chat = sourceMessage.chat, + channel = sourceMessage.channel, + messageId = sourceMessage.messageId, + threadId = sourceMessage.threadId, + date = sourceMessage.date, + forwardOrigin = sourceMessage.forwardOrigin, + editDate = sourceMessage.editDate, + hasProtectedContent = sourceMessage.hasProtectedContent, + replyInfo = sourceMessage.replyInfo, + replyMarkup = sourceMessage.replyMarkup, + content = content, + senderBot = sourceMessage.senderBot, + authorSignature = sourceMessage.authorSignature, + mediaGroupId = sourceMessage.mediaGroupId, + fromOffline = sourceMessage.fromOffline, + cost = sourceMessage.cost, + ) } } diff --git a/tgbotapi.utils/api/tgbotapi.utils.api b/tgbotapi.utils/api/tgbotapi.utils.api index 910304bc24..2dbafce8b8 100644 --- a/tgbotapi.utils/api/tgbotapi.utils.api +++ b/tgbotapi.utils/api/tgbotapi.utils.api @@ -1163,6 +1163,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun channelContentMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/ChannelContentMessage; public static final fun channelContentMessageOrThrow (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/abstracts/ChannelContentMessage; public static final fun channelContentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/ChannelContentMessage; + public static final fun channelDirectMessagesChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChat; + public static final fun channelDirectMessagesChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ChannelDirectMessagesChat; public static final fun channelDirectMessagesConfigurationChangedDisabledOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged$Disabled; public static final fun channelDirectMessagesConfigurationChangedDisabledOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged$Disabled; public static final fun channelDirectMessagesConfigurationChangedFreeOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged$Free; @@ -1171,6 +1173,14 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun channelDirectMessagesConfigurationChangedOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged; public static final fun channelDirectMessagesConfigurationChangedPaidOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged$Paid; public static final fun channelDirectMessagesConfigurationChangedPaidOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/ChannelDirectMessagesConfigurationChanged$Paid; + public static final fun channelDirectMessagesContentMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public static final fun channelDirectMessagesContentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage; + public static final fun channelDirectMessagesEventMessageOrNull (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage; + public static final fun channelDirectMessagesEventMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage; + public static final fun channelDirectMessagesEventMessageOrThrow (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage; + public static final fun channelDirectMessagesEventMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesEventMessage; + public static final fun channelDirectMessagesEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent; + public static final fun channelDirectMessagesEventOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelDirectMessagesEvent; public static final fun channelEventMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/ChannelEventMessage; public static final fun channelEventMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/ChannelEventMessage; public static final fun channelEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChannelEvent; @@ -1241,6 +1251,14 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun codeTextSourceOrThrow (Ldev/inmo/tgbotapi/types/message/textsources/TextSource;)Ldev/inmo/tgbotapi/types/message/textsources/CodeTextSource; public static final fun commonBotOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/CommonBot; public static final fun commonBotOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/CommonBot; + public static final fun commonChannelDirectMessagesContentMessageOrNull (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage; + public static final fun commonChannelDirectMessagesContentMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage; + public static final fun commonChannelDirectMessagesContentMessageOrThrow (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage; + public static final fun commonChannelDirectMessagesContentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage; + public static final fun commonChannelDirectMessagesEventMessageOrNull (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesEventMessage; + public static final fun commonChannelDirectMessagesEventMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesEventMessage; + public static final fun commonChannelDirectMessagesEventMessageOrThrow (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesEventMessage; + public static final fun commonChannelDirectMessagesEventMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesEventMessage; public static final fun commonChatMemberUpdatedUpdateOrNull (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/CommonChatMemberUpdatedUpdate; public static final fun commonChatMemberUpdatedUpdateOrThrow (Ldev/inmo/tgbotapi/types/update/abstracts/Update;)Ldev/inmo/tgbotapi/types/update/CommonChatMemberUpdatedUpdate; public static final fun commonEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/CommonEvent; @@ -1381,6 +1399,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun extendedBusinessChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedBusinessChat; public static final fun extendedChannelChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedChannelChat; public static final fun extendedChannelChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedChannelChat; + public static final fun extendedChannelDirectMessagesChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChat; + public static final fun extendedChannelDirectMessagesChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedChannelDirectMessagesChat; public static final fun extendedChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedChat; public static final fun extendedChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedChat; public static final fun extendedChatWithUsernameOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/ExtendedChatWithUsername; @@ -1441,6 +1461,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun fragmentOrThrow (Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;)Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner$Fragment; public static final fun freeformGradientOrNull (Ldev/inmo/tgbotapi/types/BackgroundFill;)Ldev/inmo/tgbotapi/types/BackgroundFill$FreeformGradient; public static final fun freeformGradientOrThrow (Ldev/inmo/tgbotapi/types/BackgroundFill;)Ldev/inmo/tgbotapi/types/BackgroundFill$FreeformGradient; + public static final fun fromChannelChannelDirectMessagesContentMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage; + public static final fun fromChannelChannelDirectMessagesContentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage; public static final fun fromChannelForumContentMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/FromChannelForumContentMessage; public static final fun fromChannelForumContentMessageOrThrow (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/FromChannelForumContentMessage; public static final fun fromChannelGroupContentMessageOrNull (Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Ldev/inmo/tgbotapi/types/message/abstracts/FromChannelGroupContentMessage; @@ -1578,10 +1600,15 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun ifChannelChatCreated (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifChannelContentMessage (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifChannelContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifChannelDirectMessagesChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifChannelDirectMessagesConfigurationChanged (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifChannelDirectMessagesConfigurationChangedDisabled (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifChannelDirectMessagesConfigurationChangedFree (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifChannelDirectMessagesConfigurationChangedPaid (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifChannelDirectMessagesContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifChannelDirectMessagesEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifChannelDirectMessagesEventMessage (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifChannelDirectMessagesEventMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifChannelEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifChannelEventMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifChannelPostUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; @@ -1618,6 +1645,10 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun ifCodeTextSource (Ldev/inmo/tgbotapi/types/message/textsources/TextSource;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifCommon (Ldev/inmo/tgbotapi/types/buttons/KeyboardButtonRequestUsers;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifCommonBot (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifCommonChannelDirectMessagesContentMessage (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifCommonChannelDirectMessagesContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifCommonChannelDirectMessagesEventMessage (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifCommonChannelDirectMessagesEventMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifCommonChatMemberUpdatedUpdate (Ldev/inmo/tgbotapi/types/update/abstracts/Update;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifCommonEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifCommonForumContentMessage (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; @@ -1687,6 +1718,7 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun ifExtendedBot (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifExtendedBusinessChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifExtendedChannelChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifExtendedChannelDirectMessagesChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifExtendedChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifExtendedChatWithUsername (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifExtendedForumChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; @@ -1718,6 +1750,7 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun ifFragment (Ldev/inmo/tgbotapi/types/payments/stars/TransactionPartner;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifFreeformGradient (Ldev/inmo/tgbotapi/types/BackgroundFill;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifFromChannel (Ldev/inmo/tgbotapi/types/message/ForwardInfo;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifFromChannelChannelDirectMessagesContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifFromChannelForumContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifFromChannelGroupContentMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifFromSupergroup (Ldev/inmo/tgbotapi/types/message/ForwardInfo;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; @@ -1916,6 +1949,7 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun ifPreviewBot (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifPreviewBusinessChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifPreviewChannelChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifPreviewChannelDirectMessagesChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifPreviewChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifPreviewForumChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifPreviewGroupChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; @@ -1983,6 +2017,15 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun ifSubscriptionMemberChatMember (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifSucceeded (Ldev/inmo/tgbotapi/types/payments/stars/RevenueWithdrawalState;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifSuccessfulPaymentEvent (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifSuggestedPostApprovalFailed (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifSuggestedPostApproved (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifSuggestedPostDeclined (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifSuggestedPostInfo (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifSuggestedPostPaid (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifSuggestedPostPaidOther (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifSuggestedPostPaidTON (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifSuggestedPostPaidXTR (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static final fun ifSuggestedPostRefunded (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifSuperPublicChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifSupergroupChat (Ldev/inmo/tgbotapi/types/chat/Chat;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static final fun ifSupergroupChatCreated (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; @@ -2406,6 +2449,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun previewBusinessChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewBusinessChat; public static final fun previewChannelChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat; public static final fun previewChannelChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat; + public static final fun previewChannelDirectMessagesChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat; + public static final fun previewChannelDirectMessagesChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat; public static final fun previewChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewChat; public static final fun previewChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewChat; public static final fun previewForumChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/PreviewForumChat; @@ -2540,6 +2585,24 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt { public static final fun succeededOrThrow (Ldev/inmo/tgbotapi/types/payments/stars/RevenueWithdrawalState;)Ldev/inmo/tgbotapi/types/payments/stars/RevenueWithdrawalState$Succeeded; public static final fun successfulPaymentEventOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/payments/SuccessfulPaymentEvent; public static final fun successfulPaymentEventOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/payments/SuccessfulPaymentEvent; + public static final fun suggestedPostApprovalFailedOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed; + public static final fun suggestedPostApprovalFailedOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApprovalFailed; + public static final fun suggestedPostApprovedOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved; + public static final fun suggestedPostApprovedOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostApproved; + public static final fun suggestedPostDeclinedOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined; + public static final fun suggestedPostDeclinedOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostDeclined; + public static final fun suggestedPostInfoOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo; + public static final fun suggestedPostInfoOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostInfo; + public static final fun suggestedPostPaidOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid; + public static final fun suggestedPostPaidOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid; + public static final fun suggestedPostPaidOtherOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Other; + public static final fun suggestedPostPaidOtherOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$Other; + public static final fun suggestedPostPaidTONOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$TON; + public static final fun suggestedPostPaidTONOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$TON; + public static final fun suggestedPostPaidXTROrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$XTR; + public static final fun suggestedPostPaidXTROrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostPaid$XTR; + public static final fun suggestedPostRefundedOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded; + public static final fun suggestedPostRefundedOrThrow (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/suggested/SuggestedPostRefunded; public static final fun superPublicChatOrNull (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/SuperPublicChat; public static final fun superPublicChatOrThrow (Ldev/inmo/tgbotapi/types/chat/Chat;)Ldev/inmo/tgbotapi/types/chat/SuperPublicChat; public static final fun supergroupChatCreatedOrNull (Ldev/inmo/tgbotapi/types/message/ChatEvents/abstracts/ChatEvent;)Ldev/inmo/tgbotapi/types/message/ChatEvents/SupergroupChatCreated; 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 0fa9516420..5ffa6803e4 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 @@ -123,6 +123,7 @@ import dev.inmo.tgbotapi.types.chat.AbleToAddInAttachmentMenuChat import dev.inmo.tgbotapi.types.chat.Bot import dev.inmo.tgbotapi.types.chat.BusinessChat import dev.inmo.tgbotapi.types.chat.ChannelChat +import dev.inmo.tgbotapi.types.chat.ChannelDirectMessagesChat import dev.inmo.tgbotapi.types.chat.Chat import dev.inmo.tgbotapi.types.chat.ChatBackground import dev.inmo.tgbotapi.types.chat.ChatJoinRequest @@ -132,6 +133,7 @@ import dev.inmo.tgbotapi.types.chat.CommonUser import dev.inmo.tgbotapi.types.chat.ExtendedBot import dev.inmo.tgbotapi.types.chat.ExtendedBusinessChat import dev.inmo.tgbotapi.types.chat.ExtendedChannelChat +import dev.inmo.tgbotapi.types.chat.ExtendedChannelDirectMessagesChat import dev.inmo.tgbotapi.types.chat.ExtendedChat import dev.inmo.tgbotapi.types.chat.ExtendedChatWithUsername import dev.inmo.tgbotapi.types.chat.ExtendedForumChat @@ -146,6 +148,7 @@ import dev.inmo.tgbotapi.types.chat.PossiblyPremiumChat import dev.inmo.tgbotapi.types.chat.PreviewBot import dev.inmo.tgbotapi.types.chat.PreviewBusinessChat import dev.inmo.tgbotapi.types.chat.PreviewChannelChat +import dev.inmo.tgbotapi.types.chat.PreviewChannelDirectMessagesChat import dev.inmo.tgbotapi.types.chat.PreviewChat import dev.inmo.tgbotapi.types.chat.PreviewForumChat import dev.inmo.tgbotapi.types.chat.PreviewGroupChat @@ -264,6 +267,7 @@ import dev.inmo.tgbotapi.types.message.ChatEvents.ProximityAlertTriggered import dev.inmo.tgbotapi.types.message.ChatEvents.SupergroupChatCreated import dev.inmo.tgbotapi.types.message.ChatEvents.UserLoggedIn import dev.inmo.tgbotapi.types.message.ChatEvents.WebAppData +import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelDirectMessagesEvent import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelEvent import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChatEvent import dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.CommonEvent @@ -280,10 +284,17 @@ import dev.inmo.tgbotapi.types.message.ChatEvents.forum.ForumTopicReopened import dev.inmo.tgbotapi.types.message.ChatEvents.forum.GeneralForumTopicHidden import dev.inmo.tgbotapi.types.message.ChatEvents.forum.GeneralForumTopicUnhidden import dev.inmo.tgbotapi.types.message.ChatEvents.forum.WriteAccessAllowed +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostApprovalFailed +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostApproved +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostDeclined +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostInfo +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostPaid +import dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostRefunded import dev.inmo.tgbotapi.types.message.ChatEvents.voice.VideoChatEnded import dev.inmo.tgbotapi.types.message.ChatEvents.voice.VideoChatParticipantsInvited import dev.inmo.tgbotapi.types.message.ChatEvents.voice.VideoChatScheduled import dev.inmo.tgbotapi.types.message.ChatEvents.voice.VideoChatStarted +import dev.inmo.tgbotapi.types.message.CommonChannelDirectMessagesEventMessage import dev.inmo.tgbotapi.types.message.CommonGroupEventMessage import dev.inmo.tgbotapi.types.message.CommonSupergroupEventMessage import dev.inmo.tgbotapi.types.message.ForwardInfo @@ -294,13 +305,17 @@ import dev.inmo.tgbotapi.types.message.abstracts.AnonymousForumContentMessage import dev.inmo.tgbotapi.types.message.abstracts.AnonymousGroupContentMessage import dev.inmo.tgbotapi.types.message.abstracts.BusinessContentMessage import dev.inmo.tgbotapi.types.message.abstracts.ChannelContentMessage +import dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesContentMessage +import dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesEventMessage import dev.inmo.tgbotapi.types.message.abstracts.ChatEventMessage +import dev.inmo.tgbotapi.types.message.abstracts.CommonChannelDirectMessagesContentMessage import dev.inmo.tgbotapi.types.message.abstracts.CommonForumContentMessage import dev.inmo.tgbotapi.types.message.abstracts.CommonGroupContentMessage import dev.inmo.tgbotapi.types.message.abstracts.CommonMessage import dev.inmo.tgbotapi.types.message.abstracts.ConnectedFromChannelGroupContentMessage import dev.inmo.tgbotapi.types.message.abstracts.ContentMessage import dev.inmo.tgbotapi.types.message.abstracts.ForumContentMessage +import dev.inmo.tgbotapi.types.message.abstracts.FromChannelChannelDirectMessagesContentMessage import dev.inmo.tgbotapi.types.message.abstracts.FromChannelForumContentMessage import dev.inmo.tgbotapi.types.message.abstracts.FromChannelGroupContentMessage import dev.inmo.tgbotapi.types.message.abstracts.FromUserMessage @@ -698,6 +713,12 @@ public inline fun OptionallyWithUser.leftChatMemberEventOrThrow(): LeftChatMembe public inline fun OptionallyWithUser.ifLeftChatMemberEvent(block: (LeftChatMemberEvent) -> T): T? = leftChatMemberEventOrNull() ?.let(block) +public inline fun OptionallyWithUser.commonChannelDirectMessagesEventMessageOrNull(): CommonChannelDirectMessagesEventMessage? = this as? dev.inmo.tgbotapi.types.message.CommonChannelDirectMessagesEventMessage + +public inline fun OptionallyWithUser.commonChannelDirectMessagesEventMessageOrThrow(): CommonChannelDirectMessagesEventMessage = this as dev.inmo.tgbotapi.types.message.CommonChannelDirectMessagesEventMessage + +public inline fun OptionallyWithUser.ifCommonChannelDirectMessagesEventMessage(block: (CommonChannelDirectMessagesEventMessage) -> T): T? = commonChannelDirectMessagesEventMessageOrNull() ?.let(block) + public inline fun OptionallyWithUser.commonGroupEventMessageOrNull(): CommonGroupEventMessage? = this as? dev.inmo.tgbotapi.types.message.CommonGroupEventMessage public inline fun OptionallyWithUser.commonGroupEventMessageOrThrow(): CommonGroupEventMessage = this as dev.inmo.tgbotapi.types.message.CommonGroupEventMessage @@ -734,6 +755,12 @@ public inline fun OptionallyWithUser.channelContentMessageOrThrow(): ChannelCont public inline fun OptionallyWithUser.ifChannelContentMessage(block: (ChannelContentMessage) -> T): T? = channelContentMessageOrNull() ?.let(block) +public inline fun OptionallyWithUser.channelDirectMessagesEventMessageOrNull(): ChannelDirectMessagesEventMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesEventMessage + +public inline fun OptionallyWithUser.channelDirectMessagesEventMessageOrThrow(): ChannelDirectMessagesEventMessage = this as dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesEventMessage + +public inline fun OptionallyWithUser.ifChannelDirectMessagesEventMessage(block: (ChannelDirectMessagesEventMessage) -> T): T? = channelDirectMessagesEventMessageOrNull() ?.let(block) + public inline fun OptionallyWithUser.optionallyFromUserMessageOrNull(): OptionallyFromUserMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.OptionallyFromUserMessage public inline fun OptionallyWithUser.optionallyFromUserMessageOrThrow(): OptionallyFromUserMessage = this as dev.inmo.tgbotapi.types.message.abstracts.OptionallyFromUserMessage @@ -764,6 +791,12 @@ public inline fun OptionallyWithUser.commonForumContentMessageOrThrow(): CommonF public inline fun OptionallyWithUser.ifCommonForumContentMessage(block: (CommonForumContentMessage) -> T): T? = commonForumContentMessageOrNull() ?.let(block) +public inline fun OptionallyWithUser.commonChannelDirectMessagesContentMessageOrNull(): CommonChannelDirectMessagesContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.CommonChannelDirectMessagesContentMessage + +public inline fun OptionallyWithUser.commonChannelDirectMessagesContentMessageOrThrow(): CommonChannelDirectMessagesContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.CommonChannelDirectMessagesContentMessage + +public inline fun OptionallyWithUser.ifCommonChannelDirectMessagesContentMessage(block: (CommonChannelDirectMessagesContentMessage) -> T): T? = commonChannelDirectMessagesContentMessageOrNull() ?.let(block) + public inline fun OptionallyWithUser.privateContentMessageOrNull(): PrivateContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.PrivateContentMessage public inline fun OptionallyWithUser.privateContentMessageOrThrow(): PrivateContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.PrivateContentMessage @@ -1640,6 +1673,12 @@ public inline fun Chat.forumChatOrThrow(): ForumChat = this as dev.inmo.tgbotapi public inline fun Chat.ifForumChat(block: (ForumChat) -> T): T? = forumChatOrNull() ?.let(block) +public inline fun Chat.channelDirectMessagesChatOrNull(): ChannelDirectMessagesChat? = this as? dev.inmo.tgbotapi.types.chat.ChannelDirectMessagesChat + +public inline fun Chat.channelDirectMessagesChatOrThrow(): ChannelDirectMessagesChat = this as dev.inmo.tgbotapi.types.chat.ChannelDirectMessagesChat + +public inline fun Chat.ifChannelDirectMessagesChat(block: (ChannelDirectMessagesChat) -> T): T? = channelDirectMessagesChatOrNull() ?.let(block) + public inline fun Chat.possiblyPremiumChatOrNull(): PossiblyPremiumChat? = this as? dev.inmo.tgbotapi.types.chat.PossiblyPremiumChat public inline fun Chat.possiblyPremiumChatOrThrow(): PossiblyPremiumChat = this as dev.inmo.tgbotapi.types.chat.PossiblyPremiumChat @@ -1712,6 +1751,12 @@ public inline fun Chat.extendedForumChatOrThrow(): ExtendedForumChat = this as d public inline fun Chat.ifExtendedForumChat(block: (ExtendedForumChat) -> T): T? = extendedForumChatOrNull() ?.let(block) +public inline fun Chat.extendedChannelDirectMessagesChatOrNull(): ExtendedChannelDirectMessagesChat? = this as? dev.inmo.tgbotapi.types.chat.ExtendedChannelDirectMessagesChat + +public inline fun Chat.extendedChannelDirectMessagesChatOrThrow(): ExtendedChannelDirectMessagesChat = this as dev.inmo.tgbotapi.types.chat.ExtendedChannelDirectMessagesChat + +public inline fun Chat.ifExtendedChannelDirectMessagesChat(block: (ExtendedChannelDirectMessagesChat) -> T): T? = extendedChannelDirectMessagesChatOrNull() ?.let(block) + public inline fun Chat.extendedChatWithUsernameOrNull(): ExtendedChatWithUsername? = this as? dev.inmo.tgbotapi.types.chat.ExtendedChatWithUsername public inline fun Chat.extendedChatWithUsernameOrThrow(): ExtendedChatWithUsername = this as dev.inmo.tgbotapi.types.chat.ExtendedChatWithUsername @@ -1820,6 +1865,12 @@ public inline fun Chat.previewForumChatOrThrow(): PreviewForumChat = this as dev public inline fun Chat.ifPreviewForumChat(block: (PreviewForumChat) -> T): T? = previewForumChatOrNull() ?.let(block) +public inline fun Chat.previewChannelDirectMessagesChatOrNull(): PreviewChannelDirectMessagesChat? = this as? dev.inmo.tgbotapi.types.chat.PreviewChannelDirectMessagesChat + +public inline fun Chat.previewChannelDirectMessagesChatOrThrow(): PreviewChannelDirectMessagesChat = this as dev.inmo.tgbotapi.types.chat.PreviewChannelDirectMessagesChat + +public inline fun Chat.ifPreviewChannelDirectMessagesChat(block: (PreviewChannelDirectMessagesChat) -> T): T? = previewChannelDirectMessagesChatOrNull() ?.let(block) + public inline fun Chat.unknownChatTypeOrNull(): UnknownChatType? = this as? dev.inmo.tgbotapi.types.chat.UnknownChatType public inline fun Chat.unknownChatTypeOrThrow(): UnknownChatType = this as dev.inmo.tgbotapi.types.chat.UnknownChatType @@ -2444,6 +2495,12 @@ public inline fun ChatEvent.webAppDataOrThrow(): WebAppData = this as dev.inmo.t public inline fun ChatEvent.ifWebAppData(block: (WebAppData) -> T): T? = webAppDataOrNull() ?.let(block) +public inline fun ChatEvent.channelDirectMessagesEventOrNull(): ChannelDirectMessagesEvent? = this as? dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelDirectMessagesEvent + +public inline fun ChatEvent.channelDirectMessagesEventOrThrow(): ChannelDirectMessagesEvent = this as dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelDirectMessagesEvent + +public inline fun ChatEvent.ifChannelDirectMessagesEvent(block: (ChannelDirectMessagesEvent) -> T): T? = channelDirectMessagesEventOrNull() ?.let(block) + public inline fun ChatEvent.channelEventOrNull(): ChannelEvent? = this as? dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelEvent public inline fun ChatEvent.channelEventOrThrow(): ChannelEvent = this as dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChannelEvent @@ -2558,6 +2615,60 @@ public inline fun ChatEvent.writeAccessAllowedFromAttachmentMenuOrThrow(): Write public inline fun ChatEvent.ifWriteAccessAllowedFromAttachmentMenu(block: (WriteAccessAllowed.FromAttachmentMenu) -> T): T? = writeAccessAllowedFromAttachmentMenuOrNull() ?.let(block) +public inline fun ChatEvent.suggestedPostApprovalFailedOrNull(): SuggestedPostApprovalFailed? = this as? dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostApprovalFailed + +public inline fun ChatEvent.suggestedPostApprovalFailedOrThrow(): SuggestedPostApprovalFailed = this as dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostApprovalFailed + +public inline fun ChatEvent.ifSuggestedPostApprovalFailed(block: (SuggestedPostApprovalFailed) -> T): T? = suggestedPostApprovalFailedOrNull() ?.let(block) + +public inline fun ChatEvent.suggestedPostApprovedOrNull(): SuggestedPostApproved? = this as? dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostApproved + +public inline fun ChatEvent.suggestedPostApprovedOrThrow(): SuggestedPostApproved = this as dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostApproved + +public inline fun ChatEvent.ifSuggestedPostApproved(block: (SuggestedPostApproved) -> T): T? = suggestedPostApprovedOrNull() ?.let(block) + +public inline fun ChatEvent.suggestedPostDeclinedOrNull(): SuggestedPostDeclined? = this as? dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostDeclined + +public inline fun ChatEvent.suggestedPostDeclinedOrThrow(): SuggestedPostDeclined = this as dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostDeclined + +public inline fun ChatEvent.ifSuggestedPostDeclined(block: (SuggestedPostDeclined) -> T): T? = suggestedPostDeclinedOrNull() ?.let(block) + +public inline fun ChatEvent.suggestedPostInfoOrNull(): SuggestedPostInfo? = this as? dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostInfo + +public inline fun ChatEvent.suggestedPostInfoOrThrow(): SuggestedPostInfo = this as dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostInfo + +public inline fun ChatEvent.ifSuggestedPostInfo(block: (SuggestedPostInfo) -> T): T? = suggestedPostInfoOrNull() ?.let(block) + +public inline fun ChatEvent.suggestedPostPaidOrNull(): SuggestedPostPaid? = this as? dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostPaid + +public inline fun ChatEvent.suggestedPostPaidOrThrow(): SuggestedPostPaid = this as dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostPaid + +public inline fun ChatEvent.ifSuggestedPostPaid(block: (SuggestedPostPaid) -> T): T? = suggestedPostPaidOrNull() ?.let(block) + +public inline fun ChatEvent.suggestedPostPaidXTROrNull(): SuggestedPostPaid.XTR? = this as? dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostPaid.XTR + +public inline fun ChatEvent.suggestedPostPaidXTROrThrow(): SuggestedPostPaid.XTR = this as dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostPaid.XTR + +public inline fun ChatEvent.ifSuggestedPostPaidXTR(block: (SuggestedPostPaid.XTR) -> T): T? = suggestedPostPaidXTROrNull() ?.let(block) + +public inline fun ChatEvent.suggestedPostPaidTONOrNull(): SuggestedPostPaid.TON? = this as? dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostPaid.TON + +public inline fun ChatEvent.suggestedPostPaidTONOrThrow(): SuggestedPostPaid.TON = this as dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostPaid.TON + +public inline fun ChatEvent.ifSuggestedPostPaidTON(block: (SuggestedPostPaid.TON) -> T): T? = suggestedPostPaidTONOrNull() ?.let(block) + +public inline fun ChatEvent.suggestedPostPaidOtherOrNull(): SuggestedPostPaid.Other? = this as? dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostPaid.Other + +public inline fun ChatEvent.suggestedPostPaidOtherOrThrow(): SuggestedPostPaid.Other = this as dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostPaid.Other + +public inline fun ChatEvent.ifSuggestedPostPaidOther(block: (SuggestedPostPaid.Other) -> T): T? = suggestedPostPaidOtherOrNull() ?.let(block) + +public inline fun ChatEvent.suggestedPostRefundedOrNull(): SuggestedPostRefunded? = this as? dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostRefunded + +public inline fun ChatEvent.suggestedPostRefundedOrThrow(): SuggestedPostRefunded = this as dev.inmo.tgbotapi.types.message.ChatEvents.suggested.SuggestedPostRefunded + +public inline fun ChatEvent.ifSuggestedPostRefunded(block: (SuggestedPostRefunded) -> T): T? = suggestedPostRefundedOrNull() ?.let(block) + public inline fun ChatEvent.videoChatEndedOrNull(): VideoChatEnded? = this as? dev.inmo.tgbotapi.types.message.ChatEvents.voice.VideoChatEnded public inline fun ChatEvent.videoChatEndedOrThrow(): VideoChatEnded = this as dev.inmo.tgbotapi.types.message.ChatEvents.voice.VideoChatEnded @@ -2654,6 +2765,12 @@ public inline fun Message.channelEventMessageOrThrow(): ChannelEventMessage Message.ifChannelEventMessage(block: (ChannelEventMessage) -> T): T? = channelEventMessageOrNull() ?.let(block) +public inline fun Message.commonChannelDirectMessagesEventMessageOrNull(): CommonChannelDirectMessagesEventMessage? = this as? dev.inmo.tgbotapi.types.message.CommonChannelDirectMessagesEventMessage + +public inline fun Message.commonChannelDirectMessagesEventMessageOrThrow(): CommonChannelDirectMessagesEventMessage = this as dev.inmo.tgbotapi.types.message.CommonChannelDirectMessagesEventMessage + +public inline fun Message.ifCommonChannelDirectMessagesEventMessage(block: (CommonChannelDirectMessagesEventMessage) -> T): T? = commonChannelDirectMessagesEventMessageOrNull() ?.let(block) + public inline fun Message.commonGroupEventMessageOrNull(): CommonGroupEventMessage? = this as? dev.inmo.tgbotapi.types.message.CommonGroupEventMessage public inline fun Message.commonGroupEventMessageOrThrow(): CommonGroupEventMessage = this as dev.inmo.tgbotapi.types.message.CommonGroupEventMessage @@ -2690,6 +2807,12 @@ public inline fun Message.channelContentMessageOrThrow(): ChannelContentMessage< public inline fun Message.ifChannelContentMessage(block: (ChannelContentMessage) -> T): T? = channelContentMessageOrNull() ?.let(block) +public inline fun Message.channelDirectMessagesEventMessageOrNull(): ChannelDirectMessagesEventMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesEventMessage + +public inline fun Message.channelDirectMessagesEventMessageOrThrow(): ChannelDirectMessagesEventMessage = this as dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesEventMessage + +public inline fun Message.ifChannelDirectMessagesEventMessage(block: (ChannelDirectMessagesEventMessage) -> T): T? = channelDirectMessagesEventMessageOrNull() ?.let(block) + public inline fun Message.chatEventMessageOrNull(): ChatEventMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.ChatEventMessage public inline fun Message.chatEventMessageOrThrow(): ChatEventMessage = this as dev.inmo.tgbotapi.types.message.abstracts.ChatEventMessage @@ -2744,6 +2867,12 @@ public inline fun Message.forumContentMessageOrThrow(): ForumContentMessage Message.ifForumContentMessage(block: (ForumContentMessage) -> T): T? = forumContentMessageOrNull() ?.let(block) +public inline fun Message.channelDirectMessagesContentMessageOrNull(): ChannelDirectMessagesContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesContentMessage + +public inline fun Message.channelDirectMessagesContentMessageOrThrow(): ChannelDirectMessagesContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.ChannelDirectMessagesContentMessage + +public inline fun Message.ifChannelDirectMessagesContentMessage(block: (ChannelDirectMessagesContentMessage) -> T): T? = channelDirectMessagesContentMessageOrNull() ?.let(block) + public inline fun Message.fromChannelGroupContentMessageOrNull(): FromChannelGroupContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.FromChannelGroupContentMessage public inline fun Message.fromChannelGroupContentMessageOrThrow(): FromChannelGroupContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.FromChannelGroupContentMessage @@ -2780,6 +2909,12 @@ public inline fun Message.fromChannelForumContentMessageOrThrow(): FromChannelFo public inline fun Message.ifFromChannelForumContentMessage(block: (FromChannelForumContentMessage) -> T): T? = fromChannelForumContentMessageOrNull() ?.let(block) +public inline fun Message.fromChannelChannelDirectMessagesContentMessageOrNull(): FromChannelChannelDirectMessagesContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.FromChannelChannelDirectMessagesContentMessage + +public inline fun Message.fromChannelChannelDirectMessagesContentMessageOrThrow(): FromChannelChannelDirectMessagesContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.FromChannelChannelDirectMessagesContentMessage + +public inline fun Message.ifFromChannelChannelDirectMessagesContentMessage(block: (FromChannelChannelDirectMessagesContentMessage) -> T): T? = fromChannelChannelDirectMessagesContentMessageOrNull() ?.let(block) + public inline fun Message.anonymousForumContentMessageOrNull(): AnonymousForumContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.AnonymousForumContentMessage public inline fun Message.anonymousForumContentMessageOrThrow(): AnonymousForumContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.AnonymousForumContentMessage @@ -2792,6 +2927,12 @@ public inline fun Message.commonForumContentMessageOrThrow(): CommonForumContent public inline fun Message.ifCommonForumContentMessage(block: (CommonForumContentMessage) -> T): T? = commonForumContentMessageOrNull() ?.let(block) +public inline fun Message.commonChannelDirectMessagesContentMessageOrNull(): CommonChannelDirectMessagesContentMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.CommonChannelDirectMessagesContentMessage + +public inline fun Message.commonChannelDirectMessagesContentMessageOrThrow(): CommonChannelDirectMessagesContentMessage = this as dev.inmo.tgbotapi.types.message.abstracts.CommonChannelDirectMessagesContentMessage + +public inline fun Message.ifCommonChannelDirectMessagesContentMessage(block: (CommonChannelDirectMessagesContentMessage) -> T): T? = commonChannelDirectMessagesContentMessageOrNull() ?.let(block) + public inline fun Message.accessibleMessageOrNull(): AccessibleMessage? = this as? dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage public inline fun Message.accessibleMessageOrThrow(): AccessibleMessage = this as dev.inmo.tgbotapi.types.message.abstracts.AccessibleMessage