фикс Ошибка: Bad Request: message to edit not found
This commit is contained in:
parent
0161d83b47
commit
6939a665e5
11
Program.cs
11
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user