Ребят помогите словить значение ссылки http://t.me/mybot?start=123
пробую так но не получается
case preg_match("~^\/start ([\d]+)$~", $text, $matches):
// здесь нужное вам значение
$id_ref = $matches[1];
// далее вы что-то делаете с $id_ref
$dataSend = array(
'text' => $id_ref,
'chat_id' => $chat_id,
'reply_markup' => $justKeyboard,
);
$this->requestToTelegram($dataSend, "sendMessage");
break;