15 lines
374 B
C#
15 lines
374 B
C#
using Telegram.Bot.Types;
|
|
using Telegram.Bot.Types.Enums;
|
|
|
|
namespace GmRelay.Bot.Infrastructure.Telegram;
|
|
|
|
public interface ITelegramUpdateSource
|
|
{
|
|
Task<Update[]> GetUpdatesAsync(
|
|
int offset,
|
|
int? limit = null,
|
|
int? timeout = null,
|
|
IEnumerable<UpdateType>? allowedUpdates = null,
|
|
CancellationToken cancellationToken = default);
|
|
}
|