From 3f988d152918e02b372d0bf663a818285f957f59 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 16 Mar 2024 20:04:19 +0600 Subject: [PATCH] CallbackQueryIdentifier is value class now --- CHANGELOG.md | 1 + tgbotapi.api/api/tgbotapi.api.api | 4 +- .../api/tgbotapi.behaviour_builder.api | 2 +- tgbotapi.core/api/tgbotapi.core.api | 112 +++++++++++------- .../tgbotapi/types/CallbackQueryIdentifier.kt | 10 ++ .../kotlin/dev/inmo/tgbotapi/types/Common.kt | 1 - 6 files changed, 85 insertions(+), 45 deletions(-) create mode 100644 tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/CallbackQueryIdentifier.kt diff --git a/CHANGELOG.md b/CHANGELOG.md index 74247f07fe..586364ae2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ * `MessageThreadId` now is `value class` * `InlineQueryIdentifier` now is `value class` * `MediaGroupIdentifier` now is `value class` + * `CallbackQueryIdentifier` now is `value class` ## 10.1.2 diff --git a/tgbotapi.api/api/tgbotapi.api.api b/tgbotapi.api/api/tgbotapi.api.api index 8bbee7e048..c799b92931 100644 --- a/tgbotapi.api/api/tgbotapi.api.api +++ b/tgbotapi.api/api/tgbotapi.api.api @@ -205,9 +205,9 @@ public final class dev/inmo/tgbotapi/extensions/api/answers/AnswerCallbackQueryK public static final fun answer (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/queries/callback/CallbackQuery;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun answer$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/queries/callback/CallbackQuery;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; public static final fun answerCallbackQuery (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/queries/callback/CallbackQuery;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public static final fun answerCallbackQuery (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public static synthetic fun answerCallbackQuery$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ldev/inmo/tgbotapi/types/queries/callback/CallbackQuery;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; - public static synthetic fun answerCallbackQuery$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; + public static final fun answerCallbackQuery-2Vp8Toc (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public static synthetic fun answerCallbackQuery-2Vp8Toc$default (Ldev/inmo/tgbotapi/bot/RequestsExecutor;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object; } public final class dev/inmo/tgbotapi/extensions/api/answers/AnswerInlineQueryKt { diff --git a/tgbotapi.behaviour_builder/api/tgbotapi.behaviour_builder.api b/tgbotapi.behaviour_builder/api/tgbotapi.behaviour_builder.api index cc5d818c9b..0c777c70cf 100644 --- a/tgbotapi.behaviour_builder/api/tgbotapi.behaviour_builder.api +++ b/tgbotapi.behaviour_builder/api/tgbotapi.behaviour_builder.api @@ -1303,8 +1303,8 @@ public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_f public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByIdCallbackQueryMarkerFactory : dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory { public static final field INSTANCE Ldev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByIdCallbackQueryMarkerFactory; - public fun invoke (Ldev/inmo/tgbotapi/types/queries/callback/CallbackQuery;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; public synthetic fun invoke (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; + public fun invoke-8RLmks4 (Ldev/inmo/tgbotapi/types/queries/callback/CallbackQuery;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; } public final class dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/ByIdChatBoostRemovedMarkerFactory : dev/inmo/tgbotapi/extensions/behaviour_builder/utils/marker_factories/MarkerFactory { diff --git a/tgbotapi.core/api/tgbotapi.core.api b/tgbotapi.core/api/tgbotapi.core.api index 01355288a3..427671a73f 100644 --- a/tgbotapi.core/api/tgbotapi.core.api +++ b/tgbotapi.core/api/tgbotapi.core.api @@ -938,18 +938,18 @@ public abstract interface class dev/inmo/tgbotapi/requests/abstracts/SimpleReque public final class dev/inmo/tgbotapi/requests/answers/AnswerCallbackQuery : dev/inmo/tgbotapi/requests/abstracts/SimpleRequest { public static final field Companion Ldev/inmo/tgbotapi/requests/answers/AnswerCallbackQuery$Companion; - public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;)V public synthetic fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ljava/lang/String; + public synthetic fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1-W_Rpwvk ()Ljava/lang/String; public final fun component2 ()Ljava/lang/String; public final fun component3 ()Ljava/lang/Boolean; public final fun component4 ()Ljava/lang/String; public final fun component5 ()Ljava/lang/Integer; - public final fun copy (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;)Ldev/inmo/tgbotapi/requests/answers/AnswerCallbackQuery; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/requests/answers/AnswerCallbackQuery;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/answers/AnswerCallbackQuery; + public final fun copy-DSWifT0 (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;)Ldev/inmo/tgbotapi/requests/answers/AnswerCallbackQuery; + public static synthetic fun copy-DSWifT0$default (Ldev/inmo/tgbotapi/requests/answers/AnswerCallbackQuery;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/Integer;ILjava/lang/Object;)Ldev/inmo/tgbotapi/requests/answers/AnswerCallbackQuery; public fun equals (Ljava/lang/Object;)Z public final fun getCachedTimeSeconds ()Ljava/lang/Integer; - public final fun getCallbackQueryId ()Ljava/lang/String; + public final fun getCallbackQueryId-W_Rpwvk ()Ljava/lang/String; public fun getRequestSerializer ()Lkotlinx/serialization/SerializationStrategy; public fun getResultDeserializer ()Lkotlinx/serialization/DeserializationStrategy; public final fun getShowAlert ()Ljava/lang/Boolean; @@ -7128,6 +7128,36 @@ public final class dev/inmo/tgbotapi/types/BotShortDescription$Companion { public final fun serializer ()Lkotlinx/serialization/KSerializer; } +public final class dev/inmo/tgbotapi/types/CallbackQueryIdentifier { + public static final field Companion Ldev/inmo/tgbotapi/types/CallbackQueryIdentifier$Companion; + public static final synthetic fun box-impl (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/CallbackQueryIdentifier; + 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 final fun getString ()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 class dev/inmo/tgbotapi/types/CallbackQueryIdentifier$$serializer : kotlinx/serialization/internal/GeneratedSerializer { + public static final field INSTANCE Ldev/inmo/tgbotapi/types/CallbackQueryIdentifier$$serializer; + public fun childSerializers ()[Lkotlinx/serialization/KSerializer; + public synthetic fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/Object; + public fun deserialize-bLVZuG0 (Lkotlinx/serialization/encoding/Decoder;)Ljava/lang/String; + public fun getDescriptor ()Lkotlinx/serialization/descriptors/SerialDescriptor; + public synthetic fun serialize (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/Object;)V + public fun serialize-hp_ZFtE (Lkotlinx/serialization/encoding/Encoder;Ljava/lang/String;)V + public fun typeParametersSerializers ()[Lkotlinx/serialization/KSerializer; +} + +public final class dev/inmo/tgbotapi/types/CallbackQueryIdentifier$Companion { + public final fun serializer ()Lkotlinx/serialization/KSerializer; +} + public final class dev/inmo/tgbotapi/types/ChatId : dev/inmo/tgbotapi/types/IdChatIdentifier { public static final field Companion Ldev/inmo/tgbotapi/types/ChatId$Companion; public static final synthetic fun box-impl (J)Ldev/inmo/tgbotapi/types/ChatId; @@ -21920,7 +21950,7 @@ public final class dev/inmo/tgbotapi/types/queries/callback/AbstractMessageCallb public abstract interface class dev/inmo/tgbotapi/types/queries/callback/CallbackQuery : dev/inmo/tgbotapi/abstracts/FromUser { public abstract fun getChatInstance ()Ljava/lang/String; public abstract fun getFrom ()Ldev/inmo/tgbotapi/types/chat/CommonUser; - public abstract fun getId ()Ljava/lang/String; + public abstract fun getId-W_Rpwvk ()Ljava/lang/String; public abstract fun getUser ()Ldev/inmo/tgbotapi/types/chat/CommonUser; } @@ -21953,20 +21983,20 @@ public final class dev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageC } public final class dev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageDataCallbackQuery : dev/inmo/tgbotapi/types/queries/callback/DataCallbackQuery, dev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageCallbackQuery { - public fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage;Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; + public synthetic fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1-W_Rpwvk ()Ljava/lang/String; public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage; public final fun component5 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageDataCallbackQuery; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageDataCallbackQuery;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageDataCallbackQuery; + public final fun copy-DSWifT0 (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageDataCallbackQuery; + public static synthetic fun copy-DSWifT0$default (Ldev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageDataCallbackQuery;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageDataCallbackQuery; public fun equals (Ljava/lang/Object;)Z public fun getChatInstance ()Ljava/lang/String; public fun getData ()Ljava/lang/String; public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public synthetic fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; - public fun getId ()Ljava/lang/String; + public fun getId-W_Rpwvk ()Ljava/lang/String; public fun getMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage; public synthetic fun getMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; public fun getUser ()Ldev/inmo/tgbotapi/types/chat/CommonUser; @@ -21976,20 +22006,20 @@ public final class dev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageD } public final class dev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageGameShortNameCallbackQuery : dev/inmo/tgbotapi/types/queries/callback/GameShortNameCallbackQuery, dev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageCallbackQuery { - public fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage;Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; + public synthetic fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1-W_Rpwvk ()Ljava/lang/String; public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage; public final fun component5 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageGameShortNameCallbackQuery; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageGameShortNameCallbackQuery;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageGameShortNameCallbackQuery; + public final fun copy-DSWifT0 (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageGameShortNameCallbackQuery; + public static synthetic fun copy-DSWifT0$default (Ldev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageGameShortNameCallbackQuery;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/InaccessibleMessageGameShortNameCallbackQuery; public fun equals (Ljava/lang/Object;)Z public fun getChatInstance ()Ljava/lang/String; public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public synthetic fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; public fun getGameShortName ()Ljava/lang/String; - public fun getId ()Ljava/lang/String; + public fun getId-W_Rpwvk ()Ljava/lang/String; public fun getMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/InaccessibleMessage; public synthetic fun getMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; public fun getUser ()Ldev/inmo/tgbotapi/types/chat/CommonUser; @@ -22008,20 +22038,20 @@ public final class dev/inmo/tgbotapi/types/queries/callback/InlineMessageIdCallb public final class dev/inmo/tgbotapi/types/queries/callback/InlineMessageIdDataCallbackQuery : dev/inmo/tgbotapi/types/queries/callback/DataCallbackQuery, dev/inmo/tgbotapi/types/queries/callback/InlineMessageIdCallbackQuery { public static final field Companion Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdDataCallbackQuery$Companion; - public fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; + public synthetic fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1-W_Rpwvk ()Ljava/lang/String; public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Ljava/lang/String; public final fun component5 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdDataCallbackQuery; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdDataCallbackQuery;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdDataCallbackQuery; + public final fun copy-DSWifT0 (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdDataCallbackQuery; + public static synthetic fun copy-DSWifT0$default (Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdDataCallbackQuery;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdDataCallbackQuery; public fun equals (Ljava/lang/Object;)Z public fun getChatInstance ()Ljava/lang/String; public fun getData ()Ljava/lang/String; public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public synthetic fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; - public fun getId ()Ljava/lang/String; + public fun getId-W_Rpwvk ()Ljava/lang/String; public fun getInlineMessageId ()Ljava/lang/String; public fun getUser ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public synthetic fun getUser ()Ldev/inmo/tgbotapi/types/chat/User; @@ -22045,20 +22075,20 @@ public final class dev/inmo/tgbotapi/types/queries/callback/InlineMessageIdDataC } public final class dev/inmo/tgbotapi/types/queries/callback/InlineMessageIdGameShortNameCallbackQuery : dev/inmo/tgbotapi/types/queries/callback/GameShortNameCallbackQuery, dev/inmo/tgbotapi/types/queries/callback/InlineMessageIdCallbackQuery { - public fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; + public synthetic fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1-W_Rpwvk ()Ljava/lang/String; public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Ljava/lang/String; public final fun component5 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdGameShortNameCallbackQuery; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdGameShortNameCallbackQuery;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdGameShortNameCallbackQuery; + public final fun copy-DSWifT0 (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdGameShortNameCallbackQuery; + public static synthetic fun copy-DSWifT0$default (Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdGameShortNameCallbackQuery;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/InlineMessageIdGameShortNameCallbackQuery; public fun equals (Ljava/lang/Object;)Z public fun getChatInstance ()Ljava/lang/String; public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public synthetic fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; public fun getGameShortName ()Ljava/lang/String; - public fun getId ()Ljava/lang/String; + public fun getId-W_Rpwvk ()Ljava/lang/String; public fun getInlineMessageId ()Ljava/lang/String; public fun getUser ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public synthetic fun getUser ()Ldev/inmo/tgbotapi/types/chat/User; @@ -22075,20 +22105,20 @@ public final class dev/inmo/tgbotapi/types/queries/callback/MessageCallbackQuery } public final class dev/inmo/tgbotapi/types/queries/callback/MessageDataCallbackQuery : dev/inmo/tgbotapi/types/queries/callback/DataCallbackQuery, dev/inmo/tgbotapi/types/queries/callback/MessageCallbackQuery { - public fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; + public synthetic fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1-W_Rpwvk ()Ljava/lang/String; public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage; public final fun component5 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/MessageDataCallbackQuery; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/queries/callback/MessageDataCallbackQuery;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/MessageDataCallbackQuery; + public final fun copy-DSWifT0 (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/MessageDataCallbackQuery; + public static synthetic fun copy-DSWifT0$default (Ldev/inmo/tgbotapi/types/queries/callback/MessageDataCallbackQuery;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/MessageDataCallbackQuery; public fun equals (Ljava/lang/Object;)Z public fun getChatInstance ()Ljava/lang/String; public fun getData ()Ljava/lang/String; public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public synthetic fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; - public fun getId ()Ljava/lang/String; + public fun getId-W_Rpwvk ()Ljava/lang/String; public fun getMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage; public synthetic fun getMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; public fun getUser ()Ldev/inmo/tgbotapi/types/chat/CommonUser; @@ -22098,20 +22128,20 @@ public final class dev/inmo/tgbotapi/types/queries/callback/MessageDataCallbackQ } public final class dev/inmo/tgbotapi/types/queries/callback/MessageGameShortNameCallbackQuery : dev/inmo/tgbotapi/types/queries/callback/GameShortNameCallbackQuery, dev/inmo/tgbotapi/types/queries/callback/MessageCallbackQuery { - public fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; + public synthetic fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1-W_Rpwvk ()Ljava/lang/String; public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage; public final fun component5 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/MessageGameShortNameCallbackQuery; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/queries/callback/MessageGameShortNameCallbackQuery;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/MessageGameShortNameCallbackQuery; + public final fun copy-DSWifT0 (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/MessageGameShortNameCallbackQuery; + public static synthetic fun copy-DSWifT0$default (Ldev/inmo/tgbotapi/types/queries/callback/MessageGameShortNameCallbackQuery;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/MessageGameShortNameCallbackQuery; public fun equals (Ljava/lang/Object;)Z public fun getChatInstance ()Ljava/lang/String; public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public synthetic fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; public fun getGameShortName ()Ljava/lang/String; - public fun getId ()Ljava/lang/String; + public fun getId-W_Rpwvk ()Ljava/lang/String; public fun getMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/ContentMessage; public synthetic fun getMessage ()Ldev/inmo/tgbotapi/types/message/abstracts/Message; public fun getUser ()Ldev/inmo/tgbotapi/types/chat/CommonUser; @@ -22121,18 +22151,18 @@ public final class dev/inmo/tgbotapi/types/queries/callback/MessageGameShortName } public final class dev/inmo/tgbotapi/types/queries/callback/UnknownCallbackQueryType : dev/inmo/tgbotapi/types/queries/callback/CallbackQuery { - public fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; + public synthetic fun (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1-W_Rpwvk ()Ljava/lang/String; public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public final fun component3 ()Ljava/lang/String; public final fun component4 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/UnknownCallbackQueryType; - public static synthetic fun copy$default (Ldev/inmo/tgbotapi/types/queries/callback/UnknownCallbackQueryType;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/UnknownCallbackQueryType; + public final fun copy-JlBCv9g (Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;)Ldev/inmo/tgbotapi/types/queries/callback/UnknownCallbackQueryType; + public static synthetic fun copy-JlBCv9g$default (Ldev/inmo/tgbotapi/types/queries/callback/UnknownCallbackQueryType;Ljava/lang/String;Ldev/inmo/tgbotapi/types/chat/CommonUser;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/queries/callback/UnknownCallbackQueryType; public fun equals (Ljava/lang/Object;)Z public fun getChatInstance ()Ljava/lang/String; public fun getFrom ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public synthetic fun getFrom ()Ldev/inmo/tgbotapi/types/chat/User; - public fun getId ()Ljava/lang/String; + public fun getId-W_Rpwvk ()Ljava/lang/String; public final fun getRaw ()Ljava/lang/String; public fun getUser ()Ldev/inmo/tgbotapi/types/chat/CommonUser; public synthetic fun getUser ()Ldev/inmo/tgbotapi/types/chat/User; diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/CallbackQueryIdentifier.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/CallbackQueryIdentifier.kt new file mode 100644 index 0000000000..54ea53a3af --- /dev/null +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/CallbackQueryIdentifier.kt @@ -0,0 +1,10 @@ +package dev.inmo.tgbotapi.types + +import kotlinx.serialization.Serializable +import kotlin.jvm.JvmInline + +@Serializable +@JvmInline +value class CallbackQueryIdentifier( + val string: String +) \ No newline at end of file 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 e53d92dd33..7e92c1e66c 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 @@ -15,7 +15,6 @@ typealias UpdateIdentifier = Long typealias ForwardSignature = String typealias ForwardSenderName = String typealias AuthorSignature = ForwardSignature -typealias CallbackQueryIdentifier = String typealias PaymentQueryIdentifier = String typealias PreCheckoutQueryId = String typealias ShippingQueryIdentifier = String