Yuriy Zhilovets 4 years ago
parent
commit
1ef1097bfb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      telegram.pl

+ 1 - 1
telegram.pl

@@ -391,7 +391,7 @@ sub notify
 
   my $disable_error_handler = delete $params->{disable_error_handler};
   
-  if ($params->{parse_mode} eq "HTML")
+  if ($params->{parse_mode} && $params->{parse_mode} eq "HTML")
   {
     $params->{text} = $html_strip->process($params->{text});
   }