diff --git a/lib/telegrambot.pm b/lib/telegrambot.pm index 40cae94..19c1152 100644 --- a/lib/telegrambot.pm +++ b/lib/telegrambot.pm @@ -361,7 +361,7 @@ MYHELP $phrase =~ s/$pat2//g; # figure out reply :) - $reply = $hailo->{$msg->chat->id}->learn_reply ($phrase); + $reply = $hailo->{$msg->chat->id}->learn_reply ($phrase) if (length ($phrase) > 3); # simple commands # TODO: Log commands and answers } elsif (substr ($text, 0, 1) eq $c->{telegrambot}->{csign}) {