using xBotService.Models;
using System.Threading.Tasks;
using System.Collections.Generic;
using xBotService.Constants;
using System.Threading;
namespace xBotService.Interfaces
{
public interface IXBotProvider
{
///
/// Retrieve Bot Info ...
///
///
///
Task GetMe(
CancellationToken cancellationToken = default
);
///
/// Sending Simple String Message to Bot ...
///
///
///
///
///
///
///
Task SendMessage(
long chatId,
string text,
XBotReplyMarkup replyMarkup = null,
XBotMessageParseMode parseMode = XBotMessageParseMode.Html,
CancellationToken cancellationToken = default
);
///
/// Sending Verification Request Menu ...
///
///
///
///
///
Task SendVerificationMenu(
long chatId,
string label = "🔐 دریافت کد وریفیکیشن",
CancellationToken cancellationToken = default
);
///
/// Send Verification Code to Requests ...
///
///
///
///
///
///
Task SendVerificationCode(
long chatId,
string code,
int ttlSeconds,
CancellationToken cancellationToken = default
);
///
/// an Accept for Exit Loading on Bot ...
///
///
///
///
///
///
Task AnswerCallbackQuery(
string callbackQueryId,
string text = null,
bool showAlert = false,
CancellationToken cancellationToken = default
);
///
/// Remove Inline Keyboard After Click (Optional) ...
///
///
///
///
///
Task RemoveInlineKeyboard(
long chatId,
long messageId,
CancellationToken cancellationToken = default
);
///
/// Retrieve Messages ...
///
///
///
///
///
Task> GetUpdates(
long offset = 0,
int timeout = 30,
CancellationToken cancellationToken = default
);
///
/// Set Webhook for Retrieve Messages on Recieved ...
///
///
///
///
///
Task SetWebhook(
string webhookUrl,
string secretToken = null,
CancellationToken cancellationToken = default
);
}
}