This commit is contained in:
Tokumeikoi 2020-05-28 16:00:57 +08:00
parent 73cbfba19b
commit 593066f9de

View File

@ -39,7 +39,7 @@ class TelegramController extends Controller
private function getMessage(array $data)
{
if (!isset($data['message'])) return false;
if (!isset($data['message']['text'])) return false;
$obj = new \StdClass();
$obj->is_private = $data['message']['chat']['type'] === 'private' ? true : false;
$text = explode(' ', $data['message']['text']);