mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-05 16:19:26 +00:00
Partially add DirectMessagesTopic
This commit is contained in:
@@ -10416,6 +10416,7 @@ public final class dev/inmo/tgbotapi/types/CommonKt {
|
|||||||
public static final field titleEntitiesField Ljava/lang/String;
|
public static final field titleEntitiesField Ljava/lang/String;
|
||||||
public static final field titleField Ljava/lang/String;
|
public static final field titleField Ljava/lang/String;
|
||||||
public static final field topColorField Ljava/lang/String;
|
public static final field topColorField Ljava/lang/String;
|
||||||
|
public static final field topicIdField Ljava/lang/String;
|
||||||
public static final field totalAmountField Ljava/lang/String;
|
public static final field totalAmountField Ljava/lang/String;
|
||||||
public static final field totalCountField Ljava/lang/String;
|
public static final field totalCountField Ljava/lang/String;
|
||||||
public static final field totalVoterCountField Ljava/lang/String;
|
public static final field totalVoterCountField Ljava/lang/String;
|
||||||
@@ -16548,6 +16549,37 @@ public final class dev/inmo/tgbotapi/types/chat/CommonUser$Companion {
|
|||||||
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class dev/inmo/tgbotapi/types/chat/DirectMessagesTopic : dev/inmo/tgbotapi/abstracts/OptionallyWithUser {
|
||||||
|
public static final field Companion Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic$Companion;
|
||||||
|
public synthetic fun <init> (JLdev/inmo/tgbotapi/types/chat/PreviewUser;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||||
|
public synthetic fun <init> (JLdev/inmo/tgbotapi/types/chat/PreviewUser;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||||
|
public final fun component1-hDmiKeI ()J
|
||||||
|
public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/PreviewUser;
|
||||||
|
public final fun copy-sqYNc9k (JLdev/inmo/tgbotapi/types/chat/PreviewUser;)Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic;
|
||||||
|
public static synthetic fun copy-sqYNc9k$default (Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic;JLdev/inmo/tgbotapi/types/chat/PreviewUser;ILjava/lang/Object;)Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic;
|
||||||
|
public fun equals (Ljava/lang/Object;)Z
|
||||||
|
public final fun getThreadId-hDmiKeI ()J
|
||||||
|
public fun getUser ()Ldev/inmo/tgbotapi/types/chat/PreviewUser;
|
||||||
|
public synthetic fun getUser ()Ldev/inmo/tgbotapi/types/chat/User;
|
||||||
|
public fun hashCode ()I
|
||||||
|
public fun toString ()Ljava/lang/String;
|
||||||
|
}
|
||||||
|
|
||||||
|
public final synthetic class dev/inmo/tgbotapi/types/chat/DirectMessagesTopic$$serializer : kotlinx/serialization/internal/GeneratedSerializer {
|
||||||
|
public static final field INSTANCE Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic$$serializer;
|
||||||
|
public final fun childSerializers ()[Lkotlinx/serialization/KSerializer;
|
||||||
|
public final fun deserialize (Lkotlinx/serialization/encoding/Decoder;)Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic;
|
||||||
|
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/DirectMessagesTopic;)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/DirectMessagesTopic$Companion {
|
||||||
|
public final fun serializer ()Lkotlinx/serialization/KSerializer;
|
||||||
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/chat/ExtendedBot : dev/inmo/tgbotapi/types/chat/Bot, dev/inmo/tgbotapi/types/chat/ExtendedChat {
|
public final class dev/inmo/tgbotapi/types/chat/ExtendedBot : dev/inmo/tgbotapi/types/chat/Bot, dev/inmo/tgbotapi/types/chat/ExtendedChat {
|
||||||
public static final field Companion Ldev/inmo/tgbotapi/types/chat/ExtendedBot$Companion;
|
public static final field Companion Ldev/inmo/tgbotapi/types/chat/ExtendedBot$Companion;
|
||||||
public synthetic fun <init> (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZLdev/inmo/tgbotapi/types/ChatPhoto;ILdev/inmo/tgbotapi/types/colors/ColorId;Ljava/lang/String;Ljava/lang/String;IZLdev/inmo/tgbotapi/types/gifts/AcceptedGiftTypes;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
public synthetic fun <init> (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZZLdev/inmo/tgbotapi/types/ChatPhoto;ILdev/inmo/tgbotapi/types/colors/ColorId;Ljava/lang/String;Ljava/lang/String;IZLdev/inmo/tgbotapi/types/gifts/AcceptedGiftTypes;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||||
@@ -22802,28 +22834,29 @@ public final class dev/inmo/tgbotapi/types/message/ChatEvents/voice/VideoChatSta
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage {
|
public final class dev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/CommonChannelDirectMessagesContentMessage {
|
||||||
public synthetic fun <init> (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 <init> (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/chat/DirectMessagesTopic;Ldev/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 <init> (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 <init> (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/chat/DirectMessagesTopic;Ldev/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 <init> (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 <init> (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/chat/DirectMessagesTopic;Ldev/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 <init> (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 synthetic fun <init> (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/chat/DirectMessagesTopic;Ldev/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 component1 ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;
|
||||||
public final fun component10 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
public final fun component10 ()Ldev/inmo/tgbotapi/types/ReplyInfo;
|
||||||
public final fun component11 ()Ldev/inmo/tgbotapi/types/message/content/MessageContent;
|
public final fun component11 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||||
public final fun component12 ()Ldev/inmo/tgbotapi/types/chat/CommonBot;
|
public final fun component12 ()Ldev/inmo/tgbotapi/types/message/content/MessageContent;
|
||||||
public final fun component13-CsYhHCU ()Ljava/lang/String;
|
public final fun component13 ()Ldev/inmo/tgbotapi/types/chat/CommonBot;
|
||||||
public final fun component14 ()Ljava/lang/Integer;
|
public final fun component14-CsYhHCU ()Ljava/lang/String;
|
||||||
public final fun component15 ()Z
|
public final fun component15 ()Ljava/lang/Integer;
|
||||||
public final fun component16 ()Ljava/lang/Integer;
|
public final fun component16 ()Z
|
||||||
|
public final fun component17 ()Ljava/lang/Integer;
|
||||||
public final fun component2-APLFQys ()J
|
public final fun component2-APLFQys ()J
|
||||||
public final fun component3-hDmiKeI ()J
|
public final fun component3-hDmiKeI ()J
|
||||||
public final fun component4 ()Ldev/inmo/tgbotapi/types/chat/User;
|
public final fun component4 ()Ldev/inmo/tgbotapi/types/chat/User;
|
||||||
public final fun component5-Wg0KzQs ()D
|
public final fun component5-Wg0KzQs ()D
|
||||||
public final fun component6 ()Ldev/inmo/tgbotapi/types/message/MessageOrigin;
|
public final fun component6 ()Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic;
|
||||||
public final fun component7-Ivn3T5g ()Lkorlibs/time/DateTime;
|
public final fun component7 ()Ldev/inmo/tgbotapi/types/message/MessageOrigin;
|
||||||
public final fun component8 ()Z
|
public final fun component8-Ivn3T5g ()Lkorlibs/time/DateTime;
|
||||||
public final fun component9 ()Ldev/inmo/tgbotapi/types/ReplyInfo;
|
public final fun component9 ()Z
|
||||||
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 final fun copy-I4QeWRE (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/chat/DirectMessagesTopic;Ldev/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 static synthetic fun copy-I4QeWRE$default (Ldev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesContentMessageImpl;Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;JJLdev/inmo/tgbotapi/types/chat/User;DLdev/inmo/tgbotapi/types/chat/DirectMessagesTopic;Ldev/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 equals (Ljava/lang/Object;)Z
|
||||||
public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String;
|
public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String;
|
||||||
public fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;
|
public fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;
|
||||||
@@ -22834,6 +22867,7 @@ public final class dev/inmo/tgbotapi/types/message/CommonChannelDirectMessagesCo
|
|||||||
public fun getContent ()Ldev/inmo/tgbotapi/types/message/content/MessageContent;
|
public fun getContent ()Ldev/inmo/tgbotapi/types/message/content/MessageContent;
|
||||||
public fun getCost ()Ljava/lang/Integer;
|
public fun getCost ()Ljava/lang/Integer;
|
||||||
public fun getDate-Wg0KzQs ()D
|
public fun getDate-Wg0KzQs ()D
|
||||||
|
public fun getDirectMessageTopic ()Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic;
|
||||||
public fun getEditDate-Ivn3T5g ()Lkorlibs/time/DateTime;
|
public fun getEditDate-Ivn3T5g ()Lkorlibs/time/DateTime;
|
||||||
public fun getForwardInfo ()Ldev/inmo/tgbotapi/types/message/ForwardInfo;
|
public fun getForwardInfo ()Ldev/inmo/tgbotapi/types/message/ForwardInfo;
|
||||||
public fun getForwardOrigin ()Ldev/inmo/tgbotapi/types/message/MessageOrigin;
|
public fun getForwardOrigin ()Ldev/inmo/tgbotapi/types/message/MessageOrigin;
|
||||||
@@ -23178,28 +23212,29 @@ public final class dev/inmo/tgbotapi/types/message/ForwardInfoKt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/message/FromChannelChannelDirectMessagesContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage {
|
public final class dev/inmo/tgbotapi/types/message/FromChannelChannelDirectMessagesContentMessageImpl : dev/inmo/tgbotapi/types/message/abstracts/FromChannelChannelDirectMessagesContentMessage {
|
||||||
public synthetic fun <init> (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 <init> (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/inmo/tgbotapi/types/chat/DirectMessagesTopic;Ldev/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 <init> (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 <init> (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/inmo/tgbotapi/types/chat/DirectMessagesTopic;Ldev/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 <init> (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 <init> (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/inmo/tgbotapi/types/chat/DirectMessagesTopic;Ldev/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 <init> (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 synthetic fun <init> (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/inmo/tgbotapi/types/chat/DirectMessagesTopic;Ldev/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 component1 ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;
|
||||||
public final fun component10 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
public final fun component10 ()Ldev/inmo/tgbotapi/types/ReplyInfo;
|
||||||
public final fun component11 ()Ldev/inmo/tgbotapi/types/message/content/MessageContent;
|
public final fun component11 ()Ldev/inmo/tgbotapi/types/buttons/InlineKeyboardMarkup;
|
||||||
public final fun component12 ()Ldev/inmo/tgbotapi/types/chat/CommonBot;
|
public final fun component12 ()Ldev/inmo/tgbotapi/types/message/content/MessageContent;
|
||||||
public final fun component13 ()Ljava/lang/String;
|
public final fun component13 ()Ldev/inmo/tgbotapi/types/chat/CommonBot;
|
||||||
public final fun component14-CsYhHCU ()Ljava/lang/String;
|
public final fun component14 ()Ljava/lang/String;
|
||||||
public final fun component15 ()Z
|
public final fun component15-CsYhHCU ()Ljava/lang/String;
|
||||||
public final fun component16 ()Ljava/lang/Integer;
|
public final fun component16 ()Z
|
||||||
|
public final fun component17 ()Ljava/lang/Integer;
|
||||||
public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;
|
public final fun component2 ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;
|
||||||
public final fun component3-APLFQys ()J
|
public final fun component3-APLFQys ()J
|
||||||
public final fun component4-hDmiKeI ()J
|
public final fun component4-hDmiKeI ()J
|
||||||
public final fun component5-Wg0KzQs ()D
|
public final fun component5-Wg0KzQs ()D
|
||||||
public final fun component6 ()Ldev/inmo/tgbotapi/types/message/MessageOrigin;
|
public final fun component6 ()Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic;
|
||||||
public final fun component7-Ivn3T5g ()Lkorlibs/time/DateTime;
|
public final fun component7 ()Ldev/inmo/tgbotapi/types/message/MessageOrigin;
|
||||||
public final fun component8 ()Z
|
public final fun component8-Ivn3T5g ()Lkorlibs/time/DateTime;
|
||||||
public final fun component9 ()Ldev/inmo/tgbotapi/types/ReplyInfo;
|
public final fun component9 ()Z
|
||||||
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 final fun copy-q-JDLes (Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/inmo/tgbotapi/types/chat/DirectMessagesTopic;Ldev/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 static synthetic fun copy-q-JDLes$default (Ldev/inmo/tgbotapi/types/message/FromChannelChannelDirectMessagesContentMessageImpl;Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;Ldev/inmo/tgbotapi/types/chat/PreviewChannelChat;JJDLdev/inmo/tgbotapi/types/chat/DirectMessagesTopic;Ldev/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 equals (Ljava/lang/Object;)Z
|
||||||
public fun getAuthorSignature ()Ljava/lang/String;
|
public fun getAuthorSignature ()Ljava/lang/String;
|
||||||
public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String;
|
public fun getBusinessConnectionId-nXr5wdE ()Ljava/lang/String;
|
||||||
@@ -23212,6 +23247,7 @@ public final class dev/inmo/tgbotapi/types/message/FromChannelChannelDirectMessa
|
|||||||
public fun getContent ()Ldev/inmo/tgbotapi/types/message/content/MessageContent;
|
public fun getContent ()Ldev/inmo/tgbotapi/types/message/content/MessageContent;
|
||||||
public fun getCost ()Ljava/lang/Integer;
|
public fun getCost ()Ljava/lang/Integer;
|
||||||
public fun getDate-Wg0KzQs ()D
|
public fun getDate-Wg0KzQs ()D
|
||||||
|
public fun getDirectMessageTopic ()Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic;
|
||||||
public fun getEditDate-Ivn3T5g ()Lkorlibs/time/DateTime;
|
public fun getEditDate-Ivn3T5g ()Lkorlibs/time/DateTime;
|
||||||
public fun getForwardInfo ()Ldev/inmo/tgbotapi/types/message/ForwardInfo;
|
public fun getForwardInfo ()Ldev/inmo/tgbotapi/types/message/ForwardInfo;
|
||||||
public fun getForwardOrigin ()Ldev/inmo/tgbotapi/types/message/MessageOrigin;
|
public fun getForwardOrigin ()Ldev/inmo/tgbotapi/types/message/MessageOrigin;
|
||||||
@@ -23812,6 +23848,7 @@ public final class dev/inmo/tgbotapi/types/message/abstracts/ChannelContentMessa
|
|||||||
|
|
||||||
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 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 abstract fun getChat ()Ldev/inmo/tgbotapi/types/chat/PreviewChannelDirectMessagesChat;
|
||||||
|
public abstract fun getDirectMessageTopic ()Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class dev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage$DefaultImpls {
|
public final class dev/inmo/tgbotapi/types/message/abstracts/ChannelDirectMessagesContentMessage$DefaultImpls {
|
||||||
|
@@ -524,6 +524,7 @@ const val creatorField = "creator"
|
|||||||
const val subscriptionPeriodField = "subscription_period"
|
const val subscriptionPeriodField = "subscription_period"
|
||||||
const val subscriptionPriceField = "subscription_price"
|
const val subscriptionPriceField = "subscription_price"
|
||||||
const val copyTextField = "copy_text"
|
const val copyTextField = "copy_text"
|
||||||
|
const val topicIdField = "topic_id"
|
||||||
|
|
||||||
const val isPublicField = "is_public"
|
const val isPublicField = "is_public"
|
||||||
|
|
||||||
|
@@ -0,0 +1,17 @@
|
|||||||
|
package dev.inmo.tgbotapi.types.chat
|
||||||
|
|
||||||
|
import dev.inmo.tgbotapi.abstracts.OptionallyWithUser
|
||||||
|
import dev.inmo.tgbotapi.types.MessageThreadId
|
||||||
|
import dev.inmo.tgbotapi.types.topicIdField
|
||||||
|
import dev.inmo.tgbotapi.types.userField
|
||||||
|
import kotlinx.serialization.SerialName
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
data class DirectMessagesTopic(
|
||||||
|
@SerialName(topicIdField)
|
||||||
|
val threadId: MessageThreadId,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
|
@SerialName(userField)
|
||||||
|
override val user: PreviewUser? = null,
|
||||||
|
) : OptionallyWithUser
|
@@ -13,6 +13,7 @@ import kotlinx.serialization.Serializable
|
|||||||
data class SuggestedPostApprovalFailed(
|
data class SuggestedPostApprovalFailed(
|
||||||
@SerialName(priceField) // TODO::Test that this field will never be null
|
@SerialName(priceField) // TODO::Test that this field will never be null
|
||||||
val price: SuggestedPostPrice,
|
val price: SuggestedPostPrice,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@SerialName(suggestedPostMessageField)
|
@SerialName(suggestedPostMessageField)
|
||||||
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
||||||
val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null,
|
val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null,
|
||||||
|
@@ -15,6 +15,7 @@ import kotlinx.serialization.Serializable
|
|||||||
data class SuggestedPostApproved(
|
data class SuggestedPostApproved(
|
||||||
@SerialName(sendDateField)
|
@SerialName(sendDateField)
|
||||||
val sendDate: TelegramDate,
|
val sendDate: TelegramDate,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@SerialName(suggestedPostMessageField)
|
@SerialName(suggestedPostMessageField)
|
||||||
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
||||||
val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null,
|
val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null,
|
||||||
|
@@ -10,6 +10,7 @@ import kotlinx.serialization.Serializable
|
|||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class SuggestedPostDeclined(
|
data class SuggestedPostDeclined(
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@SerialName(suggestedPostMessageField)
|
@SerialName(suggestedPostMessageField)
|
||||||
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
||||||
val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null,
|
val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null,
|
||||||
|
@@ -30,12 +30,14 @@ sealed interface SuggestedPostPaid : Currencied, ChannelDirectMessagesEvent {
|
|||||||
data class XTR(
|
data class XTR(
|
||||||
@SerialName(starAmountField)
|
@SerialName(starAmountField)
|
||||||
override val starAmount: StarAmount,
|
override val starAmount: StarAmount,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@SerialName(suggestedPostMessageField)
|
@SerialName(suggestedPostMessageField)
|
||||||
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
||||||
override val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null,
|
override val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null,
|
||||||
) : SuggestedPostPaid {
|
) : SuggestedPostPaid {
|
||||||
override val amount: Long?
|
override val amount: Long?
|
||||||
get() = null
|
get() = null
|
||||||
|
@Suppress("OPT_IN_USAGE")
|
||||||
@EncodeDefault
|
@EncodeDefault
|
||||||
override val currency: Currency = Currency.XTR
|
override val currency: Currency = Currency.XTR
|
||||||
}
|
}
|
||||||
@@ -43,12 +45,14 @@ sealed interface SuggestedPostPaid : Currencied, ChannelDirectMessagesEvent {
|
|||||||
data class TON(
|
data class TON(
|
||||||
@SerialName(amountField)
|
@SerialName(amountField)
|
||||||
override val amount: Long,
|
override val amount: Long,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@SerialName(suggestedPostMessageField)
|
@SerialName(suggestedPostMessageField)
|
||||||
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
||||||
override val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null
|
override val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null
|
||||||
) : SuggestedPostPaid {
|
) : SuggestedPostPaid {
|
||||||
override val starAmount: StarAmount?
|
override val starAmount: StarAmount?
|
||||||
get() = null
|
get() = null
|
||||||
|
@Suppress("OPT_IN_USAGE")
|
||||||
@EncodeDefault
|
@EncodeDefault
|
||||||
override val currency: Currency = Currency.TON
|
override val currency: Currency = Currency.TON
|
||||||
}
|
}
|
||||||
@@ -56,6 +60,7 @@ sealed interface SuggestedPostPaid : Currencied, ChannelDirectMessagesEvent {
|
|||||||
data class Other(
|
data class Other(
|
||||||
@SerialName(currencyField)
|
@SerialName(currencyField)
|
||||||
override val currency: Currency,
|
override val currency: Currency,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@SerialName(suggestedPostMessageField)
|
@SerialName(suggestedPostMessageField)
|
||||||
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
||||||
override val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null,
|
override val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null,
|
||||||
|
@@ -12,6 +12,7 @@ import kotlinx.serialization.Serializable
|
|||||||
data class SuggestedPostRefunded(
|
data class SuggestedPostRefunded(
|
||||||
@SerialName(reasonField)
|
@SerialName(reasonField)
|
||||||
val reason: String,
|
val reason: String,
|
||||||
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@SerialName(suggestedPostMessageField)
|
@SerialName(suggestedPostMessageField)
|
||||||
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
@Serializable(TelegramBotAPIMessageDeserializeOnlySerializer::class)
|
||||||
val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null
|
val suggestedPostMessage: ChannelDirectMessagesContentMessage<*>? = null
|
||||||
|
@@ -282,6 +282,7 @@ data class FromChannelChannelDirectMessagesContentMessageImpl<T: MessageContent>
|
|||||||
override val messageId: MessageId,
|
override val messageId: MessageId,
|
||||||
override val threadId: MessageThreadId,
|
override val threadId: MessageThreadId,
|
||||||
override val date: DateTime,
|
override val date: DateTime,
|
||||||
|
override val directMessageTopic: DirectMessagesTopic,
|
||||||
override val forwardOrigin: MessageOrigin?,
|
override val forwardOrigin: MessageOrigin?,
|
||||||
override val editDate: DateTime?,
|
override val editDate: DateTime?,
|
||||||
override val hasProtectedContent: Boolean,
|
override val hasProtectedContent: Boolean,
|
||||||
@@ -301,6 +302,7 @@ data class FromChannelChannelDirectMessagesContentMessageImpl<T: MessageContent>
|
|||||||
messageId: MessageId,
|
messageId: MessageId,
|
||||||
threadId: MessageThreadId,
|
threadId: MessageThreadId,
|
||||||
date: DateTime,
|
date: DateTime,
|
||||||
|
directMessageTopic: DirectMessagesTopic,
|
||||||
forwardInfo: ForwardInfo,
|
forwardInfo: ForwardInfo,
|
||||||
editDate: DateTime?,
|
editDate: DateTime?,
|
||||||
hasProtectedContent: Boolean,
|
hasProtectedContent: Boolean,
|
||||||
@@ -318,6 +320,7 @@ data class FromChannelChannelDirectMessagesContentMessageImpl<T: MessageContent>
|
|||||||
messageId = messageId,
|
messageId = messageId,
|
||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
date = date,
|
date = date,
|
||||||
|
directMessageTopic = directMessageTopic,
|
||||||
forwardOrigin = forwardInfo.messageOrigin(),
|
forwardOrigin = forwardInfo.messageOrigin(),
|
||||||
editDate = editDate,
|
editDate = editDate,
|
||||||
hasProtectedContent = hasProtectedContent,
|
hasProtectedContent = hasProtectedContent,
|
||||||
@@ -448,6 +451,7 @@ data class CommonChannelDirectMessagesContentMessageImpl<T : MessageContent>(
|
|||||||
override val threadId: MessageThreadId,
|
override val threadId: MessageThreadId,
|
||||||
override val from: User,
|
override val from: User,
|
||||||
override val date: DateTime,
|
override val date: DateTime,
|
||||||
|
override val directMessageTopic: DirectMessagesTopic,
|
||||||
override val forwardOrigin: MessageOrigin?,
|
override val forwardOrigin: MessageOrigin?,
|
||||||
override val editDate: DateTime?,
|
override val editDate: DateTime?,
|
||||||
override val hasProtectedContent: Boolean,
|
override val hasProtectedContent: Boolean,
|
||||||
@@ -467,6 +471,7 @@ data class CommonChannelDirectMessagesContentMessageImpl<T : MessageContent>(
|
|||||||
threadId: MessageThreadId,
|
threadId: MessageThreadId,
|
||||||
from: User,
|
from: User,
|
||||||
date: DateTime,
|
date: DateTime,
|
||||||
|
directMessageTopic: DirectMessagesTopic,
|
||||||
forwardInfo: ForwardInfo,
|
forwardInfo: ForwardInfo,
|
||||||
editDate: DateTime?,
|
editDate: DateTime?,
|
||||||
hasProtectedContent: Boolean,
|
hasProtectedContent: Boolean,
|
||||||
@@ -484,6 +489,7 @@ data class CommonChannelDirectMessagesContentMessageImpl<T : MessageContent>(
|
|||||||
threadId = threadId,
|
threadId = threadId,
|
||||||
from = from,
|
from = from,
|
||||||
date = date,
|
date = date,
|
||||||
|
directMessageTopic = directMessageTopic,
|
||||||
forwardOrigin = forwardInfo.messageOrigin(),
|
forwardOrigin = forwardInfo.messageOrigin(),
|
||||||
editDate = editDate,
|
editDate = editDate,
|
||||||
hasProtectedContent = hasProtectedContent,
|
hasProtectedContent = hasProtectedContent,
|
||||||
|
@@ -62,6 +62,7 @@ internal data class RawMessage(
|
|||||||
private val chat: PreviewChat,
|
private val chat: PreviewChat,
|
||||||
@SerialName(messageThreadIdField)
|
@SerialName(messageThreadIdField)
|
||||||
private val messageThreadId: MessageThreadId? = null,
|
private val messageThreadId: MessageThreadId? = null,
|
||||||
|
private val direct_messages_topic: DirectMessagesTopic? = null,
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
private val from: PreviewUser? = null,
|
private val from: PreviewUser? = null,
|
||||||
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
@Suppress("SERIALIZER_TYPE_INCOMPATIBLE")
|
||||||
@@ -417,6 +418,7 @@ internal data class RawMessage(
|
|||||||
)
|
)
|
||||||
is PreviewForumChat -> when(chat) {
|
is PreviewForumChat -> when(chat) {
|
||||||
is PreviewChannelDirectMessagesChat -> {
|
is PreviewChannelDirectMessagesChat -> {
|
||||||
|
val messageThreadId = direct_messages_topic ?.threadId ?: messageThreadId
|
||||||
if (messageThreadId != null) {
|
if (messageThreadId != null) {
|
||||||
val chatId = ChatIdWithThreadId(
|
val chatId = ChatIdWithThreadId(
|
||||||
chat.id.chatId,
|
chat.id.chatId,
|
||||||
@@ -432,6 +434,7 @@ internal data class RawMessage(
|
|||||||
messageId = messageId,
|
messageId = messageId,
|
||||||
threadId = messageThreadId,
|
threadId = messageThreadId,
|
||||||
date = date.asDate,
|
date = date.asDate,
|
||||||
|
directMessageTopic = direct_messages_topic ?: error("direct_messages_topic must be presented for FromChannelChannelDirectMessagesContentMessage"),
|
||||||
forwardOrigin = forward_origin,
|
forwardOrigin = forward_origin,
|
||||||
editDate = edit_date ?.asDate,
|
editDate = edit_date ?.asDate,
|
||||||
hasProtectedContent = has_protected_content == true,
|
hasProtectedContent = has_protected_content == true,
|
||||||
@@ -451,6 +454,7 @@ internal data class RawMessage(
|
|||||||
threadId = messageThreadId,
|
threadId = messageThreadId,
|
||||||
from = checkedFrom ?: from ?: error("It is expected that in direct channel messages from non anonymous channels user must be specified"),
|
from = checkedFrom ?: from ?: error("It is expected that in direct channel messages from non anonymous channels user must be specified"),
|
||||||
date = date.asDate,
|
date = date.asDate,
|
||||||
|
directMessageTopic = direct_messages_topic ?: error("direct_messages_topic must be presented for CommonChannelDirectMessagesContentMessage"),
|
||||||
forwardOrigin = forward_origin,
|
forwardOrigin = forward_origin,
|
||||||
editDate = edit_date ?.asDate,
|
editDate = edit_date ?.asDate,
|
||||||
hasProtectedContent = has_protected_content == true,
|
hasProtectedContent = has_protected_content == true,
|
||||||
|
@@ -24,6 +24,7 @@ sealed interface ForumContentMessage<T : MessageContent> : GroupContentMessage<T
|
|||||||
|
|
||||||
sealed interface ChannelDirectMessagesContentMessage<T : MessageContent> : ForumContentMessage<T>, PossiblyTopicMessage {
|
sealed interface ChannelDirectMessagesContentMessage<T : MessageContent> : ForumContentMessage<T>, PossiblyTopicMessage {
|
||||||
override val chat: PreviewChannelDirectMessagesChat
|
override val chat: PreviewChannelDirectMessagesChat
|
||||||
|
val directMessageTopic: DirectMessagesTopic
|
||||||
}
|
}
|
||||||
|
|
||||||
sealed interface FromChannelGroupContentMessage<T : MessageContent> : GroupContentMessage<T>, SignedMessage, WithSenderChatMessage {
|
sealed interface FromChannelGroupContentMessage<T : MessageContent> : GroupContentMessage<T>, SignedMessage, WithSenderChatMessage {
|
||||||
|
@@ -175,6 +175,7 @@ fun <T : MediaGroupPartContent> List<PossiblySentViaBotCommonMessage<T>>.asMedia
|
|||||||
threadId = sourceMessage.threadId,
|
threadId = sourceMessage.threadId,
|
||||||
from = sourceMessage.user,
|
from = sourceMessage.user,
|
||||||
date = sourceMessage.date,
|
date = sourceMessage.date,
|
||||||
|
directMessageTopic = sourceMessage.directMessageTopic,
|
||||||
forwardOrigin = sourceMessage.forwardOrigin,
|
forwardOrigin = sourceMessage.forwardOrigin,
|
||||||
editDate = sourceMessage.editDate,
|
editDate = sourceMessage.editDate,
|
||||||
hasProtectedContent = sourceMessage.hasProtectedContent,
|
hasProtectedContent = sourceMessage.hasProtectedContent,
|
||||||
@@ -212,6 +213,7 @@ fun <T : MediaGroupPartContent> List<PossiblySentViaBotCommonMessage<T>>.asMedia
|
|||||||
messageId = sourceMessage.messageId,
|
messageId = sourceMessage.messageId,
|
||||||
threadId = sourceMessage.threadId,
|
threadId = sourceMessage.threadId,
|
||||||
date = sourceMessage.date,
|
date = sourceMessage.date,
|
||||||
|
directMessageTopic = sourceMessage.directMessageTopic,
|
||||||
forwardOrigin = sourceMessage.forwardOrigin,
|
forwardOrigin = sourceMessage.forwardOrigin,
|
||||||
editDate = sourceMessage.editDate,
|
editDate = sourceMessage.editDate,
|
||||||
hasProtectedContent = sourceMessage.hasProtectedContent,
|
hasProtectedContent = sourceMessage.hasProtectedContent,
|
||||||
|
@@ -1335,6 +1335,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun diceContentOrThrow (Ldev/inmo/tgbotapi/types/message/content/ResendableContent;)Ldev/inmo/tgbotapi/types/message/content/DiceContent;
|
public static final fun diceContentOrThrow (Ldev/inmo/tgbotapi/types/message/content/ResendableContent;)Ldev/inmo/tgbotapi/types/message/content/DiceContent;
|
||||||
public static final fun dimmableOrNull (Ldev/inmo/tgbotapi/types/BackgroundType;)Ldev/inmo/tgbotapi/types/BackgroundType$Dimmable;
|
public static final fun dimmableOrNull (Ldev/inmo/tgbotapi/types/BackgroundType;)Ldev/inmo/tgbotapi/types/BackgroundType$Dimmable;
|
||||||
public static final fun dimmableOrThrow (Ldev/inmo/tgbotapi/types/BackgroundType;)Ldev/inmo/tgbotapi/types/BackgroundType$Dimmable;
|
public static final fun dimmableOrThrow (Ldev/inmo/tgbotapi/types/BackgroundType;)Ldev/inmo/tgbotapi/types/BackgroundType$Dimmable;
|
||||||
|
public static final fun directMessagesTopicOrNull (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic;
|
||||||
|
public static final fun directMessagesTopicOrThrow (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;)Ldev/inmo/tgbotapi/types/chat/DirectMessagesTopic;
|
||||||
public static final fun disabledOrNull (Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection;)Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection$Disabled;
|
public static final fun disabledOrNull (Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection;)Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection$Disabled;
|
||||||
public static final fun disabledOrThrow (Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection;)Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection$Disabled;
|
public static final fun disabledOrThrow (Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection;)Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection$Disabled;
|
||||||
public static final fun documentContentOrNull (Ldev/inmo/tgbotapi/types/message/content/ResendableContent;)Ldev/inmo/tgbotapi/types/message/content/DocumentContent;
|
public static final fun documentContentOrNull (Ldev/inmo/tgbotapi/types/message/content/ResendableContent;)Ldev/inmo/tgbotapi/types/message/content/DocumentContent;
|
||||||
@@ -1686,6 +1688,7 @@ public final class dev/inmo/tgbotapi/extensions/utils/ClassCastsNewKt {
|
|||||||
public static final fun ifDescribedInlineQueryResult (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/abstracts/InlineQueryResult;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifDescribedInlineQueryResult (Ldev/inmo/tgbotapi/types/InlineQueries/InlineQueryResult/abstracts/InlineQueryResult;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifDiceContent (Ldev/inmo/tgbotapi/types/message/content/ResendableContent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifDiceContent (Ldev/inmo/tgbotapi/types/message/content/ResendableContent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifDimmable (Ldev/inmo/tgbotapi/types/BackgroundType;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifDimmable (Ldev/inmo/tgbotapi/types/BackgroundType;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
public static final fun ifDirectMessagesTopic (Ldev/inmo/tgbotapi/abstracts/OptionallyWithUser;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifDisabled (Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifDisabled (Ldev/inmo/tgbotapi/types/business_connection/BusinessConnection;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifDocumentContent (Ldev/inmo/tgbotapi/types/message/content/ResendableContent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifDocumentContent (Ldev/inmo/tgbotapi/types/message/content/ResendableContent;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
public static final fun ifDocumentFile (Ldev/inmo/tgbotapi/types/files/TelegramMediaFile;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
public static final fun ifDocumentFile (Ldev/inmo/tgbotapi/types/files/TelegramMediaFile;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
||||||
|
@@ -130,6 +130,7 @@ import dev.inmo.tgbotapi.types.chat.ChatJoinRequest
|
|||||||
import dev.inmo.tgbotapi.types.chat.ChatMessageReactionUpdated
|
import dev.inmo.tgbotapi.types.chat.ChatMessageReactionUpdated
|
||||||
import dev.inmo.tgbotapi.types.chat.CommonBot
|
import dev.inmo.tgbotapi.types.chat.CommonBot
|
||||||
import dev.inmo.tgbotapi.types.chat.CommonUser
|
import dev.inmo.tgbotapi.types.chat.CommonUser
|
||||||
|
import dev.inmo.tgbotapi.types.chat.DirectMessagesTopic
|
||||||
import dev.inmo.tgbotapi.types.chat.ExtendedBot
|
import dev.inmo.tgbotapi.types.chat.ExtendedBot
|
||||||
import dev.inmo.tgbotapi.types.chat.ExtendedBusinessChat
|
import dev.inmo.tgbotapi.types.chat.ExtendedBusinessChat
|
||||||
import dev.inmo.tgbotapi.types.chat.ExtendedChannelChat
|
import dev.inmo.tgbotapi.types.chat.ExtendedChannelChat
|
||||||
@@ -641,6 +642,12 @@ public inline fun OptionallyWithUser.chatJoinRequestOrThrow(): ChatJoinRequest =
|
|||||||
|
|
||||||
public inline fun <T> OptionallyWithUser.ifChatJoinRequest(block: (ChatJoinRequest) -> T): T? = chatJoinRequestOrNull() ?.let(block)
|
public inline fun <T> OptionallyWithUser.ifChatJoinRequest(block: (ChatJoinRequest) -> T): T? = chatJoinRequestOrNull() ?.let(block)
|
||||||
|
|
||||||
|
public inline fun OptionallyWithUser.directMessagesTopicOrNull(): DirectMessagesTopic? = this as? dev.inmo.tgbotapi.types.chat.DirectMessagesTopic
|
||||||
|
|
||||||
|
public inline fun OptionallyWithUser.directMessagesTopicOrThrow(): DirectMessagesTopic = this as dev.inmo.tgbotapi.types.chat.DirectMessagesTopic
|
||||||
|
|
||||||
|
public inline fun <T> OptionallyWithUser.ifDirectMessagesTopic(block: (DirectMessagesTopic) -> T): T? = directMessagesTopicOrNull() ?.let(block)
|
||||||
|
|
||||||
public inline fun OptionallyWithUser.administratorChatMemberOrNull(): AdministratorChatMember? = this as? dev.inmo.tgbotapi.types.chat.member.AdministratorChatMember
|
public inline fun OptionallyWithUser.administratorChatMemberOrNull(): AdministratorChatMember? = this as? dev.inmo.tgbotapi.types.chat.member.AdministratorChatMember
|
||||||
|
|
||||||
public inline fun OptionallyWithUser.administratorChatMemberOrThrow(): AdministratorChatMember = this as dev.inmo.tgbotapi.types.chat.member.AdministratorChatMember
|
public inline fun OptionallyWithUser.administratorChatMemberOrThrow(): AdministratorChatMember = this as dev.inmo.tgbotapi.types.chat.member.AdministratorChatMember
|
||||||
|
Reference in New Issue
Block a user