You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since in FSA::Rules rules are evaluated in order - problem is that $ctrl->datetime_rule_instructor(@_); doesn't return a true value
So need to analyse output of datetime_rule_instructor sub of UserFSMContoller.pm
subdatetime_rule_instructor {
my ($self, $state, $update) = @_;
FSMUtils::_with_text($update, sub { # preform callback on update text
FSMUtils::_parse_value($state, sub {
$self->{dtf}->parse(shift);
}, shift);
});
}
FSMUtils::_with_text returns a result of callback function under update message text or undef
UPD: In this case we datetime_rule_instructor returns true value and FSM goes by INSTRUCTOR -> INSTRUCTOR_NOT_FOUND states instead of INSTRUCTOR -> BOOK
Well, seems like I figured it out.
There is no correction on timeZone in instructor_rule_book method: when I select time in Telegram May 5 10:00 am in bot log I see 2017-05-05T07:00:00
The text was updated successfully, but these errors were encountered: