Your question is not clear to me, but, as I understand from your question, I wrote something to you, I hope it will be useful. You can get chat_idand use it to send something to this chat. I would give an example code, but before giving me something to explain.
There are two definitions in the Telegram Bot API: chat_idand from_id.
1 - When we are in a privatechat with some chat_idand from_idare equal.
2. group, chat_id id (from_id), - (, , - privacy_mode )
, :
- , Telegram BOT ( script), "Hello chat_id" . ( PHP)
define('BOT_TOKEN','12345:abcde');
$command_prefix_url='https://api.telegram.org/bot' . BOT_TOKEN ;
$update = json_decode(file_get_contents('php://input'));
$chat_id=$update->message->chat->id;
$rep = json_decode(file_get_contents($command_prefix_url . '/SendMessage?chat_id=' .
$chat_id . '&text=' . urldecode('Hello '.(string)$chat_id)));
: (- , )
-, chat_id ( )
- .
, Telegram , bot WHOLE chat_id, - chat_id ( reciceve from) .
chat_id , , . chat_id , , , .
, , , - , , , , / - , /him chat_id . , / -.