Fix wrong variable name

This commit is contained in:
Ceda EI 2018-04-07 00:53:59 +05:30
parent 030b6c25c0
commit 9f14bd823a
1 changed files with 1 additions and 1 deletions

View File

@ -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 = "<?php return '". $chain_string . "'; ?>";
fwrite($file, $contents);