From 6939a665e57e1b184b2ebfd3cbafebc1f6ea4c93 Mon Sep 17 00:00:00 2001 From: Professional Date: Wed, 19 Mar 2025 16:34:48 +0700 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=9E=D1=88=D0=B8?= =?UTF-8?q?=D0=B1=D0=BA=D0=B0:=20Bad=20Request:=20message=20to=20edit=20no?= =?UTF-8?q?t=20found?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Program.cs b/Program.cs index 07ef70f..c83a6e8 100644 --- a/Program.cs +++ b/Program.cs @@ -361,12 +361,12 @@ class Program string newText = $"Заявка #{reportId}\n\nОписание: {description}\nСтатус: {status}"; - await botClient.EditMessageText( - chatId: chatId, - messageId: messageId, - text: newText, - replyMarkup: statusButtons + await botClient.SendMessage( + chatId: chatId, + text: newText, + replyMarkup: statusButtons ); + } } } @@ -380,6 +380,7 @@ class Program + private static async Task UpdateReportStatus(long reportId, string newStatus) { try