mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
fix of return type in SendMediaGroup and fill changelog
This commit is contained in:
parent
4cd8e823c6
commit
e40548e558
@ -1,5 +1,11 @@
|
|||||||
# TelegramBotAPI changelog
|
# TelegramBotAPI changelog
|
||||||
|
|
||||||
|
## 5.0.1
|
||||||
|
|
||||||
|
* `Core`:
|
||||||
|
* Fixes in `SendMediaGroup` request
|
||||||
|
* Fixes in `SetChatAdministratorCustomTitle` request (thanks to [@madhead](https://github.com/madhead))
|
||||||
|
|
||||||
## 5.0.0
|
## 5.0.0
|
||||||
|
|
||||||
[Bot API 6.4](https://core.telegram.org/bots/api-changelog#december-30-2022) support!
|
[Bot API 6.4](https://core.telegram.org/bots/api-changelog#december-30-2022) support!
|
||||||
|
@ -37,7 +37,7 @@ fun <T : MediaGroupPartContent> SendMediaGroup(
|
|||||||
protectContent: Boolean = false,
|
protectContent: Boolean = false,
|
||||||
replyToMessageId: MessageId? = null,
|
replyToMessageId: MessageId? = null,
|
||||||
allowSendingWithoutReply: Boolean? = null
|
allowSendingWithoutReply: Boolean? = null
|
||||||
): Request<PossiblySentViaBotCommonMessage<T>> {
|
): Request<PossiblySentViaBotCommonMessage<MediaGroupContent<T>>> {
|
||||||
if (media.size !in mediaCountInMediaGroup) {
|
if (media.size !in mediaCountInMediaGroup) {
|
||||||
throwRangeError("Count of members in media group", mediaCountInMediaGroup, media.size)
|
throwRangeError("Count of members in media group", mediaCountInMediaGroup, media.size)
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ fun <T : MediaGroupPartContent> SendMediaGroup(
|
|||||||
data,
|
data,
|
||||||
SendMediaGroupFiles(files)
|
SendMediaGroupFiles(files)
|
||||||
)
|
)
|
||||||
}) as Request<PossiblySentViaBotCommonMessage<T>>
|
}) as Request<PossiblySentViaBotCommonMessage<MediaGroupContent<T>>>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user