mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
MessageThreadId is value class now
This commit is contained in:
parent
4a1989fb79
commit
3c8dbe70dc
@ -6,6 +6,7 @@
|
||||
|
||||
* `Core`:
|
||||
* `MessageId` now is `value class`
|
||||
* `MessageThreadId` now is `value class`
|
||||
|
||||
## 10.1.2
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -108,15 +108,15 @@ suspend inline fun TelegramBot.sendVoice(
|
||||
replyMarkup: KeyboardMarkup? = null
|
||||
) = execute(
|
||||
SendVoice(
|
||||
chatId,
|
||||
voice,
|
||||
entities,
|
||||
duration,
|
||||
threadId,
|
||||
disableNotification,
|
||||
protectContent,
|
||||
replyParameters,
|
||||
replyMarkup
|
||||
chatId = chatId,
|
||||
voice = voice,
|
||||
entities = entities,
|
||||
threadId = threadId,
|
||||
duration = duration,
|
||||
disableNotification = disableNotification,
|
||||
protectContent = protectContent,
|
||||
replyParameters = replyParameters,
|
||||
replyMarkup = replyMarkup
|
||||
)
|
||||
)
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -148,7 +148,7 @@ object FullChatIdentifierSerializer : KSerializer<ChatIdentifier> {
|
||||
val (chatId, threadId) = splitted
|
||||
ChatIdWithThreadId(
|
||||
chatId.toLongOrNull() ?: return@let null,
|
||||
threadId.toLongOrNull() ?: return@let null
|
||||
threadId.toLongOrNull() ?.let(::MessageThreadId) ?: return@let null
|
||||
)
|
||||
} else {
|
||||
null
|
||||
|
@ -10,7 +10,6 @@ import kotlinx.serialization.encoding.Encoder
|
||||
import kotlin.jvm.JvmInline
|
||||
|
||||
typealias Identifier = Long
|
||||
typealias MessageThreadId = Long
|
||||
typealias MessageIdentifier = MessageId
|
||||
typealias InlineQueryIdentifier = String
|
||||
typealias UpdateIdentifier = Long
|
||||
|
@ -0,0 +1,10 @@
|
||||
package dev.inmo.tgbotapi.types
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlin.jvm.JvmInline
|
||||
|
||||
@Serializable
|
||||
@JvmInline
|
||||
value class MessageThreadId(
|
||||
val long: Long
|
||||
)
|
@ -2600,16 +2600,16 @@ public final class dev/inmo/tgbotapi/extensions/utils/extensions/SameKt {
|
||||
public static final fun sameMessage (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Z
|
||||
public static final fun sameMessage-EQziP_A (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/ChatIdentifier;J)Z
|
||||
public static final fun sameMessage-EQziP_A (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/chat/Chat;J)Z
|
||||
public static final fun sameThread (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/Long;)Z
|
||||
public static final fun sameThread (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/chat/Chat;Ljava/lang/Long;)Z
|
||||
public static final fun sameThread (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Z
|
||||
public static synthetic fun sameThread$default (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/Long;ILjava/lang/Object;)Z
|
||||
public static synthetic fun sameThread$default (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/chat/Chat;Ljava/lang/Long;ILjava/lang/Object;)Z
|
||||
public static final fun sameTopic (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/Long;)Z
|
||||
public static final fun sameTopic (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/chat/Chat;Ljava/lang/Long;)Z
|
||||
public static final fun sameThread-ozQpjvA (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/MessageThreadId;)Z
|
||||
public static final fun sameThread-ozQpjvA (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/chat/Chat;Ldev/inmo/tgbotapi/types/MessageThreadId;)Z
|
||||
public static synthetic fun sameThread-ozQpjvA$default (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/MessageThreadId;ILjava/lang/Object;)Z
|
||||
public static synthetic fun sameThread-ozQpjvA$default (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/chat/Chat;Ldev/inmo/tgbotapi/types/MessageThreadId;ILjava/lang/Object;)Z
|
||||
public static final fun sameTopic (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/message/abstracts/Message;)Z
|
||||
public static synthetic fun sameTopic$default (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ljava/lang/Long;ILjava/lang/Object;)Z
|
||||
public static synthetic fun sameTopic$default (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/chat/Chat;Ljava/lang/Long;ILjava/lang/Object;)Z
|
||||
public static final fun sameTopic-ozQpjvA (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/MessageThreadId;)Z
|
||||
public static final fun sameTopic-ozQpjvA (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/chat/Chat;Ldev/inmo/tgbotapi/types/MessageThreadId;)Z
|
||||
public static synthetic fun sameTopic-ozQpjvA$default (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/ChatIdentifier;Ldev/inmo/tgbotapi/types/MessageThreadId;ILjava/lang/Object;)Z
|
||||
public static synthetic fun sameTopic-ozQpjvA$default (Ldev/inmo/tgbotapi/types/message/abstracts/Message;Ldev/inmo/tgbotapi/types/chat/Chat;Ldev/inmo/tgbotapi/types/MessageThreadId;ILjava/lang/Object;)Z
|
||||
}
|
||||
|
||||
public final class dev/inmo/tgbotapi/extensions/utils/extensions/TelegramBotCommandsDefaults {
|
||||
@ -2834,25 +2834,25 @@ public final class dev/inmo/tgbotapi/extensions/utils/formatting/LinksFormatting
|
||||
public static final fun getStartattachPrefix-hkcqQtM (Ljava/lang/String;)Ljava/lang/String;
|
||||
public static final fun getStickerSetLink (Ljava/lang/String;)Ldev/inmo/tgbotapi/types/message/textsources/TextLinkTextSource;
|
||||
public static final fun getUsernameLink-hkcqQtM (Ljava/lang/String;)Ljava/lang/String;
|
||||
public static final fun link-26ZnLnw (Ljava/lang/String;Ljava/lang/Long;)Ljava/lang/String;
|
||||
public static final fun link-zv9neSE (JLjava/lang/Long;)Ljava/lang/String;
|
||||
public static final fun makeChatLink (JLjava/lang/Long;)Ljava/lang/String;
|
||||
public static synthetic fun makeChatLink$default (JLjava/lang/Long;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static final fun link-752ER_0 (Ljava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;)Ljava/lang/String;
|
||||
public static final fun link-kXE59pw (JLdev/inmo/tgbotapi/types/MessageThreadId;)Ljava/lang/String;
|
||||
public static final fun makeChatLink-zFai7VQ (JLdev/inmo/tgbotapi/types/MessageThreadId;)Ljava/lang/String;
|
||||
public static synthetic fun makeChatLink-zFai7VQ$default (JLdev/inmo/tgbotapi/types/MessageThreadId;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static final fun makeDeepLink-26ZnLnw (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
public static final fun makeInternalTgDeepLink (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
public static final fun makeInternalTgDeepLink-26ZnLnw (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
public static final fun makeInternalTgUsernameDeepLinkPrefix (Ljava/lang/String;)Ljava/lang/String;
|
||||
public static final fun makeInternalTgUsernameLink (Ljava/lang/String;)Ljava/lang/String;
|
||||
public static final fun makeLink-26ZnLnw (Ljava/lang/String;Ljava/lang/Long;)Ljava/lang/String;
|
||||
public static synthetic fun makeLink-26ZnLnw$default (Ljava/lang/String;Ljava/lang/Long;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static final fun makeLinkToMessage-HkzWJnM (JJLjava/lang/Long;)Ljava/lang/String;
|
||||
public static final fun makeLinkToMessage-HkzWJnM (Ljava/lang/String;JLjava/lang/Long;)Ljava/lang/String;
|
||||
public static synthetic fun makeLinkToMessage-HkzWJnM$default (JJLjava/lang/Long;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static synthetic fun makeLinkToMessage-HkzWJnM$default (Ljava/lang/String;JLjava/lang/Long;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static final fun makeLink-752ER_0 (Ljava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;)Ljava/lang/String;
|
||||
public static synthetic fun makeLink-752ER_0$default (Ljava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static final fun makeLinkToMessage-QEgSB0w (JJLdev/inmo/tgbotapi/types/MessageThreadId;)Ljava/lang/String;
|
||||
public static final fun makeLinkToMessage-QEgSB0w (Ljava/lang/String;JLdev/inmo/tgbotapi/types/MessageThreadId;)Ljava/lang/String;
|
||||
public static synthetic fun makeLinkToMessage-QEgSB0w$default (JJLdev/inmo/tgbotapi/types/MessageThreadId;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static synthetic fun makeLinkToMessage-QEgSB0w$default (Ljava/lang/String;JLdev/inmo/tgbotapi/types/MessageThreadId;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static final fun makeLinkToMessage-e-HACGs (Ldev/inmo/tgbotapi/types/IdChatIdentifier;J)Ljava/lang/String;
|
||||
public static final fun makeLinkToMessage-e-HACGs (Ldev/inmo/tgbotapi/types/chat/Chat;J)Ljava/lang/String;
|
||||
public static final fun makeLinkToMessage-xGvoJ4w (Ljava/lang/String;JLjava/lang/Long;)Ljava/lang/String;
|
||||
public static synthetic fun makeLinkToMessage-xGvoJ4w$default (Ljava/lang/String;JLjava/lang/Long;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static final fun makeLinkToMessage-jfrm6zs (Ljava/lang/String;JLdev/inmo/tgbotapi/types/MessageThreadId;)Ljava/lang/String;
|
||||
public static synthetic fun makeLinkToMessage-jfrm6zs$default (Ljava/lang/String;JLdev/inmo/tgbotapi/types/MessageThreadId;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static final fun makeTelegramDeepLink (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
public static final fun makeTelegramDeepLink-26ZnLnw (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
public static final fun makeTelegramStartattach (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
@ -2861,8 +2861,8 @@ public final class dev/inmo/tgbotapi/extensions/utils/formatting/LinksFormatting
|
||||
public static synthetic fun makeTelegramStartattach-26ZnLnw$default (Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static final fun makeUserLink-HZVsHAI (J)Ljava/lang/String;
|
||||
public static final fun makeUsernameDeepLinkPrefix (Ljava/lang/String;)Ljava/lang/String;
|
||||
public static final fun makeUsernameLink (Ljava/lang/String;Ljava/lang/Long;)Ljava/lang/String;
|
||||
public static synthetic fun makeUsernameLink$default (Ljava/lang/String;Ljava/lang/Long;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static final fun makeUsernameLink-zFai7VQ (Ljava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;)Ljava/lang/String;
|
||||
public static synthetic fun makeUsernameLink-zFai7VQ$default (Ljava/lang/String;Ldev/inmo/tgbotapi/types/MessageThreadId;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static final fun makeUsernameStartattachLink (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
public static synthetic fun makeUsernameStartattachLink$default (Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
|
||||
public static final fun makeUsernameStartattachPrefix (Ljava/lang/String;)Ljava/lang/String;
|
||||
|
Loading…
Reference in New Issue
Block a user