|
|
@@ -139,7 +139,7 @@ sub notify::telegram::send
|
|
|
|
|
|
foreach (@$to)
|
|
|
{
|
|
|
- notify($_, $body->{message});
|
|
|
+ notify($_, $body->{message}, $body);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -259,9 +259,9 @@ sub notify
|
|
|
my $params = {
|
|
|
chat_id => $chatid,
|
|
|
text => $message,
|
|
|
- parse_mode => "Markdown",
|
|
|
};
|
|
|
|
|
|
+ $params->{parse_mode} = "Markdown" unless $rest->{parse_mode} && $rest->{parse_mode} eq "none";
|
|
|
$params->{reply_to_message_id} = $rest->{msgid} if $rest->{msgid};
|
|
|
|
|
|
return request("sendMessage", $params)->catch(sub
|