From 09bdbda4650e8903e7f0d93e2a49046d1efd7532 Mon Sep 17 00:00:00 2001 From: pedroaf0 Date: Sat, 1 Aug 2020 13:04:18 -0300 Subject: [PATCH] $chat_id env --- env.php.template | 2 ++ index.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/env.php.template b/env.php.template index 2e201b6..bcaafd9 100644 --- a/env.php.template +++ b/env.php.template @@ -3,6 +3,8 @@ $base_url = 'https://ifrs.edu.br/sertao/' $telegram_token = ""; +$chat_id = '@ifrssertao'; + $twitter_token1 = ''; $twitter_token2 = ''; $twitter_token3 = ''; diff --git a/index.php b/index.php index c5c61d6..c9a05c0 100644 --- a/index.php +++ b/index.php @@ -68,7 +68,7 @@ CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", - CURLOPT_POSTFIELDS => "{\n\t\"chat_id\":\"-1001168464133\",\n\"photo\":\"".$meta_image."\",\n\t\"parse_mode\":\"Markdown\",\n\t\"caption\":\"".$message."\"\n}", + CURLOPT_POSTFIELDS => "{\n\t\"chat_id\":\"".$chat_id."\",\n\"photo\":\"".$meta_image."\",\n\t\"parse_mode\":\"Markdown\",\n\t\"caption\":\"".$message."\"\n}", CURLOPT_HTTPHEADER => array( "content-type: application/json" ),