Fix Verification User Senario ...
This commit is contained in:
+14
-41
@@ -5,11 +5,12 @@ using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
using xCommons.Extensions;
|
||||
using xBotService.Models.Dtos;
|
||||
using xIdentityModels.Models;
|
||||
|
||||
namespace xBotService.Interfaces
|
||||
{
|
||||
public interface IXBotProvider
|
||||
{
|
||||
{
|
||||
/// <summary>
|
||||
/// Retrieve Bot Info ...
|
||||
/// </summary>
|
||||
@@ -29,7 +30,7 @@ namespace xBotService.Interfaces
|
||||
XBotUpdatesRequest requestModel,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Sending Simple String Message to Bot ...
|
||||
/// </summary>
|
||||
@@ -49,7 +50,7 @@ namespace xBotService.Interfaces
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<XBotMessage> ShowVerificationMenu(
|
||||
long botUserId,
|
||||
long botUserId,
|
||||
string label = XBotMessageIds.XBotRequestVerificationCodeLabel,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
@@ -57,53 +58,25 @@ namespace xBotService.Interfaces
|
||||
/// <summary>
|
||||
/// Send Verification Code to Requests ...
|
||||
/// </summary>
|
||||
/// <param name="botUser"></param>
|
||||
/// <param name="botUserId"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<XBotMessage> SendVerificationCode(
|
||||
XBotUserDto botUser,
|
||||
long botUserId,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// an Accept for Exit Loading on Bot ...
|
||||
/// Verify User Subscription ...
|
||||
/// </summary>
|
||||
/// <param name="callbackQueryId"></param>
|
||||
/// <param name="text"></param>
|
||||
/// <param name="showAlert"></param>
|
||||
/// <param name="token"></param>
|
||||
/// <param name="userInfo"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
// Task<XBotMessageResponse> AnswerCallbackQuery(
|
||||
// string callbackQueryId,
|
||||
// string text = null,
|
||||
// bool showAlert = false,
|
||||
// CancellationToken cancellationToken = default
|
||||
// );
|
||||
|
||||
/// <summary>
|
||||
/// Remove Inline Keyboard After Click (Optional) ...
|
||||
/// </summary>
|
||||
/// <param name="chatId"></param>
|
||||
/// <param name="messageId"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
// Task<XBotMessageResponse> RemoveInlineKeyboard(
|
||||
// long chatId,
|
||||
// long messageId,
|
||||
// CancellationToken cancellationToken = default
|
||||
// );
|
||||
|
||||
/// <summary>
|
||||
/// Set Webhook for Retrieve Messages on Recieved ...
|
||||
/// </summary>
|
||||
/// <param name="webhookUrl"></param>
|
||||
/// <param name="secretToken"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
// Task<bool> SetWebhook(
|
||||
// string webhookUrl,
|
||||
// string secretToken = null,
|
||||
// CancellationToken cancellationToken = default
|
||||
// );
|
||||
Task<XBotMessage> VerifyUser(
|
||||
string token,
|
||||
XUserClaimsInfoDto userInfo = null,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user