Skip to content

Commit

Permalink
$chat_id env
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroaf0 committed Aug 1, 2020
1 parent f45275e commit 09bdbda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions env.php.template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ $base_url = 'https://ifrs.edu.br/sertao/'

$telegram_token = "";

$chat_id = '@ifrssertao';

$twitter_token1 = '';
$twitter_token2 = '';
$twitter_token3 = '';
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
),
Expand Down

0 comments on commit 09bdbda

Please sign in to comment.