2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Update API scheme, improve service messages.

This commit is contained in:
John Preston
2025-02-20 12:22:20 +04:00
parent e302f328f7
commit 3633c19208
15 changed files with 253 additions and 155 deletions

View File

@@ -4481,7 +4481,7 @@ void ApiWrap::sendAlbumIfReady(not_null<SendingAlbum*> album) {
const auto replyTo = sample->replyTo();
const auto sendAs = album->options.sendAs;
const auto starsPaid = std::min(
history->peer->starsPerMessageChecked(),
history->peer->starsPerMessageChecked() * int(medias.size()),
album->options.starsApproved);
if (starsPaid) {
album->options.starsApproved -= starsPaid;