Skip to content

3.1.0

Compare
Choose a tag to compare
@Mirmuxsin Mirmuxsin released this 06 Dec 20:52
· 17 commits to master since this release
  • Major fix on routing

- Added State Class

Now you can handle wrong updates for your state. Let's say user is on registration state, you are waiting for user to send his name but instead of user sending you some photo/video/etc but not message

Just declare public bool $handeWrongInput = true; on your logic class and laragram send message to user about it's wrong input.
You can customize that handling by yourself. Just declare

public function handleWrongInput(Update $update): void
{
    // tell to user that he is sending wrong update
}