Yuriy Zhilovets 4 年之前
父节点
当前提交
1ef1097bfb
共有 1 个文件被更改,包括 1 次插入1 次删除
  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});
   }