D-Bot/classes/Telegram-Bot/init.php
Denny Dai e321324785 Bot Api Version
Bot Api Version
2015-06-29 22:13:58 +08:00

14 lines
275 B
PHP

<?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'];