Added frozing collection after adding inlinequeryhandler once, no prevent multiple instances of this handler in collection

This commit is contained in:
2025-08-12 00:56:41 +04:00
parent 7957d63c2b
commit 2df3485078
@@ -79,6 +79,9 @@ namespace Telegrator.MadiatorCore.Descriptors
descriptor.Indexer = descriptor.Indexer.UpdateIndex(count++);
_innerCollection.Add(descriptor.Indexer, descriptor);
if (_handlingType == UpdateType.InlineQuery)
IsReadOnly = true;
}
}