mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +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)
|
||||
{
|
||||
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']);
|
||||
|
Loading…
Reference in New Issue
Block a user