Skip to content

Add logger in error handler #31

Add logger in error handler

Add logger in error handler #31

Triggered via push March 20, 2025 21:37
Status Success
Total duration 38s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

dotnet.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
build: tests/Telegram.Tests/TestTelegramHostedService.cs#L46
'TelegramBotClientExtensions.SendTextMessageAsync(ITelegramBotClient, ChatId, string, int?, ParseMode, IEnumerable<MessageEntity>?, LinkPreviewOptions?, bool, bool, bool, string?, ReplyParameters?, ReplyMarkup?, string?, CancellationToken)' is obsolete: 'We removed all Async suffix from method names. Use SendMessage instead'
build: Examples/Telegram.Examples/UpdatePolling/Update.cs#L35
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: Examples/Telegram.Examples/Program.cs#L12
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: Examples/Telegram.Examples/UpdatePolling/Update.cs#L20
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: Examples/Telegram.Examples/UpdatePolling/Update.cs#L11
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: Telegram.Net/Services/TelegramHostedService.cs#L27
Non-nullable field '_logger' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
build: Telegram.Net/Services/TelegramHostedService.cs#L72
Possible null reference return.
build: Telegram.Net/Services/TelegramHostedService.cs#L29
Non-nullable property 'Config' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: Telegram.Net/Services/TelegramHostedService.cs#L29
Non-nullable property 'Client' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: Telegram.Net/Services/TelegramHostedService.cs#L29
Non-nullable property 'isc' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.