17 lines
385 B
PHP
Raw Normal View History

2015-06-29 22:13:58 +08:00
<?php
2015-07-08 16:13:12 +08:00
$BOT = new Base;
2015-06-29 22:13:58 +08:00
$GET = json_decode(file_get_contents("php://input"),true);
2016-01-02 19:53:39 +08:00
$debug = file_get_contents("php://input");
2015-06-29 22:13:58 +08:00
//is group?
if ($GET['message']['chat']['id'] > 0) {
$isgroup = false;
}else{
$isgroup = true;
}
//reply to...
2016-01-02 19:53:39 +08:00
$msgid = $GET['message']['message_id'];
2015-06-29 22:13:58 +08:00
$from = $GET['message']['chat']['id'];
2016-01-02 19:53:39 +08:00
$text = $GET['message']['text'];
define('MSGID',$msgid);