фикс Ошибка: Bad Request: message to edit not found

This commit is contained in:
Professional 2025-03-19 16:34:48 +07:00
parent 0161d83b47
commit 6939a665e5

View File

@ -361,12 +361,12 @@ class Program
string newText = $"Заявка #{reportId}\n\nОписание: {description}\nСтатус: {status}"; string newText = $"Заявка #{reportId}\n\nОписание: {description}\nСтатус: {status}";
await botClient.EditMessageText( await botClient.SendMessage(
chatId: chatId, chatId: chatId,
messageId: messageId,
text: newText, text: newText,
replyMarkup: statusButtons replyMarkup: statusButtons
); );
} }
} }
} }
@ -380,6 +380,7 @@ class Program
private static async Task UpdateReportStatus(long reportId, string newStatus) private static async Task UpdateReportStatus(long reportId, string newStatus)
{ {
try try