Change Help commands
telegram.py is developing, cannot be use yet, plzz ignore it
This commit is contained in:
@@ -4,21 +4,7 @@ require_once('config.inc.php');
|
||||
require_once('functions.php');
|
||||
$plugins = [];
|
||||
|
||||
if($_GET['from'] != escapePeer(BOT_NAME)){
|
||||
//is group?
|
||||
if ($_GET['to'] == escapePeer(BOT_NAME)) {
|
||||
$isgroup = false;
|
||||
}else{
|
||||
$isgroup = true;
|
||||
}
|
||||
|
||||
//reply to...
|
||||
if ($isgroup) {
|
||||
$from = $_GET['to'];
|
||||
}else{
|
||||
$from = $_GET['from'];
|
||||
$BOT->exec("msg ".escapePeer(OWNER_NAME)." ".json_encode($_GET));
|
||||
}
|
||||
$from = $_GET['from']
|
||||
|
||||
//load plugins
|
||||
$load_plugins = glob(dirname(__FILE__).DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR.'*.php');
|
||||
|
||||
Reference in New Issue
Block a user