message
$text = $telegram->Text();
//id message
$MessageId = $telegram->MessageID();
//user id
$UserId=$telegram->UserID();
//chat id
$chatID=$telegram->ChatID();
if(!empty($text) && !empty($userName)){
$content = ['chat_id' => $chatID,'text' => $UserId];
$telegram->sendMessage($content);
}
what is the problem in this code?
i use telegramBotPHP
Обсуждают сегодня