Добавлено редактирование сообщений. Убран прогресс
All checks were successful
CI / build-test (push) Successful in 52s
Release / pack-and-publish (release) Successful in 46s

This commit is contained in:
2025-12-06 09:15:00 +03:00
parent fce6e8d013
commit db122e8aef
6 changed files with 61 additions and 156 deletions

View File

@@ -14,9 +14,12 @@ public interface IMessengerAdapter
/// <summary>
/// Отправить текстовое сообщение в чат.
/// </summary>
Task SendTextAsync(string chatId, string text, MessageFormat format,
Task<string?> SendTextAsync(string chatId, string text, MessageFormat format,
IEnumerable<IEnumerable<InlineButton>>? inline,
IEnumerable<IEnumerable<ReplyButton>>? reply, CancellationToken ct);
IEnumerable<IEnumerable<ReplyButton>>? reply,
string? messageId,
CancellationToken ct
);
/// <summary>
/// Отправить файл в чат.
@@ -28,16 +31,6 @@ public interface IMessengerAdapter
/// </summary>
IAlbumBuilder CreateAlbumBuilder(PageContext ctx);
/// <summary>
/// Начать отображение прогресса операции.
/// </summary>
Task<string?> StartProgressAsync(PageContext ctx, string title, CancellationToken ct);
/// <summary>
/// Обновить прогресс операции.
/// </summary>
Task UpdateProgressAsync(PageContext ctx, string messageId, string title, int percent, CancellationToken ct);
/// <summary>
/// Вызывается при выходе со страницы.
/// </summary>