コード例 #1
0
        /// <inheritdoc />
        public virtual ValueTask HandleCommandErrorAsync(ITelegramBotClient client, TelegramCommand command, Exception e,
                                                         CancellationToken ct)
        {
            var logger = _loggerFactory.CreateLogger(command.GetType());

            logger.LogError(e, "Error occurred while handling telegram bot command.");
            return(new ValueTask());
        }