Пишу бота на telegram.bots, все было нормально, пока вдруг он просто перестал принимать сообщения. При запуске просто шлёт exception "message было null." Пишу так:
async private static Task Update(ITelegramBotClient botClient, Update update, CancellationToken token)
{
var message = update.Message;
string isResponsed = " [responsed]";
if (message.Text != null)
{
//do smthng
}
}
if (message.Text != null)=>if (message?.Text != null)– tym32167 Nov 02 '22 at 14:19