expect One
Parameters
If not null, this request will be sent by bot before returning value
If set, this factory will be used to produce requests in case when user have sent incorrect data
If set, this factory will be used to produce requests in case when it is required to say user that chain of scenario has been cancelled
When this trigger returns true, chain is cancelled
It is main param, which will be called on each update. When it return not null, result will be returned as is, but when it returns null, then will be called cancelTrigger (if it will return true - cancelRequestFactory will be called too), errorFactory and then will be returned null
Parameters
If not null, this request will be sent by bot before returning value
If set, this factory will be used to produce requests in case when user have sent incorrect data
If set, this factory will be used to produce requests in case when it is required to say user that chain of scenario has been cancelled
When this trigger returns true, chain is cancelled
It is main param, which will be called on each update. When it return not null, result will be returned as is, but when it returns null, then will be called cancelTrigger (if it will return true - cancelRequestFactory will be called too), errorFactory and then will be returned null