private static void Bot_OnReceiveGeneralError(object sender, Telegram.Bot.Args.ReceiveGeneralErrorEventArgs e) { if (!(e.Exception is System.Net.Http.HttpRequestException)) { bot.SendTextMessageAsync(PrivateChatID, e.Exception.ToString()); bShouldIgnore = true; } }
static void Bot_OnReceiveGeneralError(object sender, Telegram.Bot.Args.ReceiveGeneralErrorEventArgs e) { if (!Bot.IsReceiving) { Bot.StartReceiving(); } LogError(e.Exception); return; }
private void TelegramService_OnReceiveGeneralError(object sender, Telegram.Bot.Args.ReceiveGeneralErrorEventArgs e) { try { } catch (Exception ex) { Console.WriteLine(ex.Message); } }
private void _botClient_OnReceiveGeneralError(object sender, Telegram.Bot.Args.ReceiveGeneralErrorEventArgs e) { NLog.LogManager.GetCurrentClassLogger().Fatal(e.Exception); }
private static void Client_OnReceiveGeneralError(object sender, Telegram.Bot.Args.ReceiveGeneralErrorEventArgs e) { //throw new NotImplementedException(); }
private void _client_OnReceiveGeneralError(object sender, Telegram.Bot.Args.ReceiveGeneralErrorEventArgs e) { LogHelper.LogEx($"General Error: {e.Exception.Message}", e.Exception, Category).ConfigureAwait(false); }
protected void Api_OnReceiveGeneralError(object sender, Telegram.Bot.Args.ReceiveGeneralErrorEventArgs e) { }