- Add admin PWA push notifications for order management - Integrate TeleBot customer messaging service - Add push notification endpoints and VAPID key support - Implement order status notifications throughout workflow - Add notification UI components in admin panel - Create TeleBotMessagingService for customer updates - Add WebPush configuration to appsettings - Fix compilation issues (BotStatus, BotContacts DbSet) - Add comprehensive testing documentation Features: - Real-time admin notifications for new orders and status changes - Customer order progress updates via TeleBot - Graceful failure handling for notification services - Test endpoints for notification system validation 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
25 lines
710 B
C#
25 lines
710 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace LittleShop.Services;
|
|
|
|
public class MessageDeliveryService : IMessageDeliveryService
|
|
{
|
|
private readonly ILogger<MessageDeliveryService> _logger;
|
|
|
|
public MessageDeliveryService(ILogger<MessageDeliveryService> logger)
|
|
{
|
|
_logger = logger;
|
|
}
|
|
|
|
public async Task<bool> QueueRecoveryMessageAsync(long telegramUserId, string message)
|
|
{
|
|
_logger.LogInformation("Queuing recovery message for user {UserId}: {Message}", telegramUserId, message);
|
|
|
|
// Placeholder implementation - would integrate with actual messaging system
|
|
await Task.Delay(100);
|
|
|
|
return true;
|
|
}
|
|
} |