Synchronization
To choose how user actions will be handled, you can specify this in the config property invocationStrategy
by selecting one of the options.
fullSync – All actions processing sequentially.
fullAsync – All actions processing independently.
userSync – Actions to be executed for each user independently of other users, but actions of the same user in all chats will be executed strictly sequentially.
chatSync – Actions to be executed for each chat independently of other chats, but actions in the same chat will be executed strictly sequentially.
smartSync (default) – Actions to be executed for each user independently of other users. Actions of the same user in the same chat will be executed strictly sequentially. Actions of the same user in different chats will be executed independently.
Or you can implement interface HandlerInvocationStrategy
and provide your own variant.