D-Bot/classes/Telegram-Bot/init.php
2016-01-02 19:53:39 +08:00

17 lines
385 B
PHP

<?php
$BOT = new Base;
$GET = json_decode(file_get_contents("php://input"),true);
$debug = file_get_contents("php://input");
//is group?
if ($GET['message']['chat']['id'] > 0) {
$isgroup = false;
}else{
$isgroup = true;
}
//reply to...
$msgid = $GET['message']['message_id'];
$from = $GET['message']['chat']['id'];
$text = $GET['message']['text'];
define('MSGID',$msgid);