Add support for automatic response to SMS stop

This commit is contained in:
osaajani 2024-02-25 11:10:10 +01:00
parent 6321899e02
commit 6e6c51a9ee
9 changed files with 98 additions and 12 deletions

View file

@ -73,7 +73,8 @@ namespace controllers\internals;
*/
public function check_for_stop(string $str)
{
return 'stop' == trim(mb_strtolower($str));
$str = trim(mb_strtolower($str));
return 'stop' == $str || 'stop sms' == $str;
}
/**