15 lines
449 B
C#
15 lines
449 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LittleShop.Services;
|
|
|
|
public interface ITelegramBotManagerService
|
|
{
|
|
Task StartAsync(CancellationToken cancellationToken);
|
|
Task StopAsync(CancellationToken cancellationToken);
|
|
Task<bool> AddBotAsync(Guid botId, string botToken);
|
|
Task<bool> RemoveBotAsync(Guid botId);
|
|
Task<bool> UpdateBotSettingsAsync(Guid botId);
|
|
Task<int> GetActiveBotCount();
|
|
} |