Php 电报机器人从用户id转发

Php 电报机器人从用户id转发,php,telegram-bot,php-telegram-bot,Php,Telegram Bot,Php Telegram Bot,我正在尝试获取其消息已转发的用户的id。比如从X转发的消息,我需要获得X id 我试过了,但是我没有收到任何关于forward_的消息 <?php $update = file_get_contents('php://input'); $update = json_decode($update, TRUE); $message = isset($update['message']) ? $update['message'] : ""; $reply = isset($message['re

我正在尝试获取其消息已转发的用户的id。比如从X转发的消息,我需要获得X id

我试过了,但是我没有收到任何关于forward_的消息

<?php
$update = file_get_contents('php://input');
$update = json_decode($update, TRUE);
$message = isset($update['message']) ? $update['message'] : "";
$reply = isset($message['reply_to_message']) ? $message['reply_to_message'] : "";
$reply_id_username = isset($reply['forward_from']['id']) ? $reply['forward_from']['id'] : "";

在转发过程中,它只给我他的名字

,如果用户不允许在转发的消息中包含帐户信息,则返回的对象仅提供
转发\发送者\姓名
(包含发送者姓名的文本)。它由

如果启用了配置文件共享,则此信息应在
消息的
字段的
转发中可用

{
    "message_id": 3,
    "from": {
        "id": BOT ID,
        "is_bot": true,
        "first_name": "X",
        "username": "X_Bot"
    },
    "chat": {
        "id": MY ID,
        "first_name": "Me",
        "username": "Me",
        "type": "private"
    },
    "date": 1590679285,
    "forward_sender_name": "User X",
    "forward_date": 1590679285,
    "text": "Text"
}