Добавлена возможность отсылать сообщения в другие чаты
All checks were successful
CI / build-test (push) Successful in 33s

This commit is contained in:
2025-12-05 19:45:59 +03:00
parent a94327f0c8
commit 634a9292dc
5 changed files with 29 additions and 27 deletions

View File

@@ -53,7 +53,7 @@ public sealed class TelegramAlbumBuilder : IAlbumBuilder
{
_logger.Log(LogLevel.Warn, "Albums not supported. Degraded to sequential sends.");
foreach (var (file, caption) in _items)
await _adapter.SendFileAsync(_ctx, file, caption, ct);
await _adapter.SendFileAsync(_ctx.Update.Chat.Id, file, caption, ct);
return;
}
@@ -95,7 +95,7 @@ public sealed class TelegramAlbumBuilder : IAlbumBuilder
{
// Telegram не поддерживает document в альбомах — деградация
_logger.Log(LogLevel.Warn, $"Document '{file.Kind}' in album not supported. Sending document separately.");
await _adapter.SendFileAsync(_ctx, file, caption, ct);
await _adapter.SendFileAsync(_ctx.Update.Chat.Id, file, caption, ct);
}
}