1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-03-09 20:32:26 +00:00

update dependencies

This commit is contained in:
2026-03-05 21:38:05 +06:00
parent 8c6408bc2b
commit bd7e8ed55f
5 changed files with 13 additions and 12 deletions

View File

@@ -1,20 +1,20 @@
[versions]
kotlin = "2.2.21"
kotlin-serialization = "1.9.0"
kotlin = "2.3.10"
kotlin-serialization = "1.10.0"
kotlin-coroutines = "1.10.2"
javax-activation = "1.1.1"
korlibs = "5.4.0"
uuid = "0.8.4"
ktor = "3.3.2"
ktor = "3.4.1"
ksp = "2.3.2"
ksp = "2.3.6"
kotlin-poet = "2.2.0"
microutils = "0.26.9"
kslog = "1.5.2"
microutils = "0.29.1"
kslog = "1.6.0"
versions = "0.53.0"

View File

@@ -109,7 +109,7 @@ public suspend fun TelegramBot.sendMessageDraft(
parseMode: ParseMode? = null,
threadId: MessageThreadId? = chat.id.threadId
): Boolean = sendMessageDraft(
chatId = chat.id as IdChatIdentifier,
chatId = chat.id,
draftId = draftId,
text = text,
parseMode = parseMode,
@@ -136,7 +136,7 @@ public suspend fun TelegramBot.sendMessageDraft(
entities: TextSourcesList,
threadId: MessageThreadId? = chat.id.threadId
): Boolean = sendMessageDraft(
chatId = chat.id as IdChatIdentifier,
chatId = chat.id,
draftId = draftId,
entities = entities,
threadId = threadId
@@ -175,7 +175,7 @@ public suspend fun TelegramBot.sendMessageDraft(
threadId: MessageThreadId? = chat.id.threadId,
builderBody: EntitiesBuilderBody
): Boolean = sendMessageDraft(
chatId = chat.id as IdChatIdentifier,
chatId = chat.id,
draftId = draftId,
separator = separator,
threadId = threadId,
@@ -189,7 +189,7 @@ public suspend fun TelegramBot.sendMessageDraft(
threadId: MessageThreadId? = chat.id.threadId,
builderBody: EntitiesBuilderBody
): Boolean = sendMessageDraft(
chatId = chat.id as IdChatIdentifier,
chatId = chat.id,
draftId = draftId,
separator = separator,
threadId = threadId,

View File

@@ -29,7 +29,7 @@ inline fun <reified O : MessageContent> BehaviourContext.waitEditedContentMessag
else -> return@expectFlow emptyList()
}
messages.mapNotNull { message ->
(message as CommonMessage<*>).withContent<O>()
message.withContent<O>()
}
}

View File

@@ -168,7 +168,7 @@ inline val Message.migrate_to_chat_id: IdChatIdentifier?
@RiskFeature(RawFieldsUsageWarning)
inline val Message.migrate_from_chat_id: IdChatIdentifier?
get() = asChatEventMessage() ?.chatEvent ?.let {
it ?.asSupergroupChatCreated() ?.migratedFrom ?: it ?.asMigratedToSupergroup() ?.migratedFrom
it.asSupergroupChatCreated() ?.migratedFrom ?: it.asMigratedToSupergroup() ?.migratedFrom
}
@RiskFeature(RawFieldsUsageWarning)
inline val Message.pinned_message: Message?

View File

@@ -7,6 +7,7 @@ import kotlin.js.json
external class BottomButton {
val text: String
@Suppress("INLINE_CLASS_IN_EXTERNAL_DECLARATION_WARNING")
val iconCustomEmojiId: CustomEmojiId?
fun setText(text: String): BottomButton