Files
GmRelayBot/src/GmRelay.Bot/Infrastructure/Telegram/ITelegramUpdateSource.cs
T
Toutsu 4d6651827b
Deploy Telegram Bot / build-and-push (push) Successful in 4m24s
Deploy Telegram Bot / deploy (push) Successful in 18s
fix: skip stale pending updates on startup
2026-04-23 20:42:16 +03:00

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);
}