Bot Api Version

Bot Api Version
This commit is contained in:
Denny Dai
2015-06-29 22:13:58 +08:00
parent 1ab6510772
commit e321324785
5 changed files with 46 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
$BOT = new DBot\Base;
$GET = json_decode(file_get_contents("php://input"),true);
//is group?
if ($GET['message']['chat']['id'] > 0) {
$isgroup = false;
}else{
$isgroup = true;
}
//reply to...
$from = $GET['message']['chat']['id'];
$text = $GET['message']['text'];