mirror of
https://github.com/v2board/v2board.git
synced 2025-01-27 00:19:10 +08:00
fix
This commit is contained in:
parent
73cbfba19b
commit
593066f9de
@ -39,7 +39,7 @@ class TelegramController extends Controller
|
|||||||
|
|
||||||
private function getMessage(array $data)
|
private function getMessage(array $data)
|
||||||
{
|
{
|
||||||
if (!isset($data['message'])) return false;
|
if (!isset($data['message']['text'])) return false;
|
||||||
$obj = new \StdClass();
|
$obj = new \StdClass();
|
||||||
$obj->is_private = $data['message']['chat']['type'] === 'private' ? true : false;
|
$obj->is_private = $data['message']['chat']['type'] === 'private' ? true : false;
|
||||||
$text = explode(' ', $data['message']['text']);
|
$text = explode(' ', $data['message']['text']);
|
||||||
|
Loading…
Reference in New Issue
Block a user