D-Bot/classes/Telegram-Bot/init.php
2015-07-08 16:13:12 +08:00

14 lines
270 B
PHP

<?php
$BOT = new 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'];