8bcd16fbc9
PR Checks / test-and-build (pull_request) Successful in 12m35s
Introduce platform-neutral PlatformKind, PlatformUser, PlatformGroup, and IPlatformMessenger contracts in GmRelay.Shared. Route Telegram session schedule updates, direct notifications, interaction replies, and calendar export through TelegramPlatformMessenger while preserving existing Telegram behavior. Bump version -> 2.0.1
17 lines
617 B
C#
17 lines
617 B
C#
namespace GmRelay.Shared.Platform;
|
|
|
|
public interface IPlatformMessenger
|
|
{
|
|
Task<PlatformMessageRef> SendScheduleAsync(PlatformScheduleMessage message, CancellationToken ct);
|
|
|
|
Task UpdateScheduleAsync(PlatformScheduleMessage message, CancellationToken ct);
|
|
|
|
Task SendGroupMessageAsync(PlatformGroup group, string htmlText, CancellationToken ct);
|
|
|
|
Task SendPrivateMessageAsync(PlatformPrivateMessage message, CancellationToken ct);
|
|
|
|
Task AnswerInteractionAsync(PlatformInteractionReply reply, CancellationToken ct);
|
|
|
|
Task SendCalendarFileAsync(PlatformCalendarFile file, CancellationToken ct);
|
|
}
|