Added frozing collection after adding inlinequeryhandler once, no prevent multiple instances of this handler in collection
This commit is contained in:
@@ -79,6 +79,9 @@ namespace Telegrator.MadiatorCore.Descriptors
|
|||||||
|
|
||||||
descriptor.Indexer = descriptor.Indexer.UpdateIndex(count++);
|
descriptor.Indexer = descriptor.Indexer.UpdateIndex(count++);
|
||||||
_innerCollection.Add(descriptor.Indexer, descriptor);
|
_innerCollection.Add(descriptor.Indexer, descriptor);
|
||||||
|
|
||||||
|
if (_handlingType == UpdateType.InlineQuery)
|
||||||
|
IsReadOnly = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user