обработка Ошибка: Bad Request: message is not modified: specified new message content and reply markup are exactly the same as a current content and reply markup of the message
This commit is contained in:
parent
dc1277f0e5
commit
23e5bffd9f
15
Program.cs
15
Program.cs
@ -317,13 +317,14 @@ class Program
|
||||
}
|
||||
});
|
||||
|
||||
await botClient.EditMessageText(
|
||||
chatId: chatId,
|
||||
messageId: messageId,
|
||||
text: $"Заявка #{reportId}\n\nОписание: {description}\nСтатус: {status}",
|
||||
replyMarkup: statusButtons
|
||||
);
|
||||
string newText = $"Заявка #{reportId}\n\nОписание: {description}\nСтатус: {status}";
|
||||
|
||||
await botClient.EditMessageText(
|
||||
chatId: chatId,
|
||||
messageId: messageId,
|
||||
text: newText,
|
||||
replyMarkup: statusButtons
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -335,6 +336,8 @@ class Program
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private static async Task UpdateReportStatus(long reportId, string newStatus)
|
||||
{
|
||||
try
|
||||
|
Loading…
x
Reference in New Issue
Block a user