* Little renaming in StateKeeping namespace
* Changed "FilterAnnotation{T}" to work withou type specific sub-classes
* Changed interfaces "IUpdateRouter" and "IHandlersProvider" to match their names more correctly. Before filter validating was on providers, now its router works AS ITS SHOULD BE
This commit is contained in:
@@ -63,10 +63,10 @@ namespace Telegrator
|
||||
if (Options.GlobalCancellationToken == CancellationToken.None)
|
||||
Options.GlobalCancellationToken = cancellationToken;
|
||||
|
||||
HandlersProvider handlerProvider = new HandlersProvider(Handlers, Options, BotInfo);
|
||||
AwaitingProvider awaitingProvider = new AwaitingProvider(Options, BotInfo);
|
||||
HandlersProvider handlerProvider = new HandlersProvider(Handlers, Options);
|
||||
AwaitingProvider awaitingProvider = new AwaitingProvider(Options);
|
||||
|
||||
updateRouter = new UpdateRouter(handlerProvider, awaitingProvider, Options);
|
||||
updateRouter = new UpdateRouter(handlerProvider, awaitingProvider, Options, BotInfo);
|
||||
StartReceivingInternal(receiverOptions, cancellationToken);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user