mirror of
https://github.com/opengram-server/opengram.git
synced 2026-09-19 08:55:01 +03:00
Initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using MyTelegram.Domain.Shared.BotApi;
|
||||
|
||||
namespace MyTelegram.BotApi.Services;
|
||||
|
||||
public interface IWebhookManager
|
||||
{
|
||||
Task SetWebhookAsync(string token, string url, IFormFile? certificate, string? ipAddress,
|
||||
int? maxConnections, string[]? allowedUpdates, bool? dropPendingUpdates, string? secretToken);
|
||||
Task DeleteWebhookAsync(string token, bool? dropPendingUpdates);
|
||||
Task<BotApiWebhookInfo> GetWebhookInfoAsync(string token);
|
||||
Task SendUpdateToWebhookAsync(long botUserId, object update);
|
||||
}
|
||||
Reference in New Issue
Block a user