Enhance Telegram bot functionality with message management and new API methods
ci / build-backend (push) Successful in 3m27s
ci / build-frontend (push) Successful in 1m5s
ci / tests (push) Successful in 4m0s
ci / sonar (push) Successful in 8m22s

Updated the ITelegramApi interface to include a method for deleting messages and modified SendMessageAsync to return the message ID. Enhanced the TelegramBotService to manage message visibility by replacing previous messages with new ones, ensuring a cleaner user experience. Introduced properties in TelegramSubscriber to track the latest menu and notice message IDs. Updated related tests to verify the new message management behavior and adjusted documentation to reflect these changes.
This commit is contained in:
Leonid Pershin
2026-07-31 08:24:42 +03:00
parent 8a439f1351
commit d6bc2b15ac
9 changed files with 1835 additions and 24 deletions
@@ -850,6 +850,12 @@ namespace TeleWave.Infrastructure.Migrations
b.Property<DateTimeOffset?>("LastSeenAt")
.HasColumnType("timestamp with time zone");
b.Property<long?>("MenuMessageId")
.HasColumnType("bigint");
b.Property<long?>("NoticeMessageId")
.HasColumnType("bigint");
b.Property<Guid>("UserId")
.HasColumnType("uuid");