diff --git a/update_chain.php b/update_chain.php index af90b73..c7bb2a1 100644 --- a/update_chain.php +++ b/update_chain.php @@ -155,7 +155,7 @@ if ($saved_chain != $chain_string) { $send_message = "Chain Length: " . count($chain) . "\n\n" . $chain_string; $reply = send_text($send_message); $json = json_decode($reply); - pin_message($reply->{'result'}->{"message_id"}); + pin_message($json->{'result'}->{"message_id"}); $file = fopen('chain.php', 'w'); $contents = ""; fwrite($file, $contents);