using System.Threading;
using xBotService.Models;
using xBotService.Constants;
using System.Threading.Tasks;
using System.Collections.Generic;
using xCommons.Extensions;
using xBotService.Models.Dtos;
using xIdentityModels.Models;
namespace xBotService.Interfaces
{
public interface IXBotProvider
{
///
/// Retrieve Bot Info ...
///
///
///
Task GetMe(
CancellationToken cancellationToken = default
);
///
/// Retrieve Messages ...
///
///
///
///
Task> GetUpdates(
XBotUpdatesRequest requestModel,
CancellationToken cancellationToken = default
);
///
/// Sending Simple String Message to Bot ...
///
///
///
///
Task SendMessage(
XBotSendMessageRequest requestModel,
CancellationToken cancellationToken = default
);
///
/// Show Verification Request Menu ...
///
///
///
///
///
Task ShowVerificationMenu(
long botUserId,
string label = XBotMessageIds.XBotRequestVerificationCodeLabel,
CancellationToken cancellationToken = default
);
///
/// Send Verification Code to Requests ...
///
///
///
///
Task SendVerificationCode(
long botUserId,
CancellationToken cancellationToken = default
);
///
/// Verify User Subscription ...
///
///
///
///
///
Task VerifyUser(
string token,
XUserClaimsInfoDto userInfo = null,
CancellationToken cancellationToken = default
);
}
}