фикс Ошибка: 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}";
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user