Array
(
[update_id] => 1111111
[message] => Array
(
[message_id] => 111
[from] => Array
(
[id] => 1111111
[is_bot] =>
[first_name] => 2222222
[last_name] => 3333333
[username] => 4444444444
[language_code] => ru
)
[chat] => Array
(
[id] => -5555555555
[title] => Test 666666
[type] => supergroup
)
[date] => 77777777
[message_thread_id] => 8888
[reply_to_message] => Array
(
[message_id] => 9999
[from] => Array
(
[id] => 0000000000000
[is_bot] => 1
[first_name] => ---------test
[username] => 9999999
)
[chat] => Array
(
[id] => -00000000000000
[title] => Test --------
[type] => supergroup
)
[date] => =====99999
[text] => ghbdtn
)
[text] => Аоатт
)
)
$data = array(
"update_id" => 1111111,
"message" => array(
"message_id" => 111,
"from" => array(
"id" => 1111111,
"is_bot" => false,
"first_name" => "2222222",
"last_name" => "3333333",
"username" => "4444444444",
"language_code" => "ru"
),
"chat" => array(
"id" => -5555555555,
"title" => "Test 666666",
"type" => "supergroup"
),
"date" => 77777777,
"message_thread_id" => 8888,
"reply_to_message" => array(
"message_id" => 9999,
"from" => array(
"id" => 0000000000000,
"is_bot" => true,
"first_name" => "---------test",
"username" => "9999999"
),
"chat" => array(
"id" => -00000000000000,
"title" => "Test --------",
"type" => "supergroup"
),
"date" => "=====99999",
"text" => "ghbdtn"
),
"text" => "Аоатт"
)
);
$text = $data["message"]["text"];
echo $text; // Выведет "Аоатт"