-
- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi.php
More file actions
28 lines (24 loc) · 666 Bytes
/
api.php
File metadata and controls
28 lines (24 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*
IN THE NAME OF ALLAH
Sample Name : Telegram API without Filtering
Coder : Amir Hossein Yeganeh [Sir.4m1R]
Coder Telegram : @Sir4m1R
GitHub Address : https://github.com/iNeoTeam/Telegram-API
Telegram Channel : @iNeoTeam
*/
error_reporting(0);
header("content-type: application/json; charset: UTF-8");
$token = $_GET['token'];
$method = $_GET['method'];
function telegram($token, $method){
$api = "https://api.ineo-team.ir/telegram.php"; // Don't change it !
$input = "?token=$token&method=$method";
$output = file_get_contents($input);
return $output;
}
echo telegram($token, $method);
if(file_exists("error_log")){
unlink("error_log");
}
?>