Bot Api Version
Bot Api Version
This commit is contained in:
@@ -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'];
|
||||
Reference in New Issue
Block a user