From a9be62e13600924a67aec459743eeb28feab07a6 Mon Sep 17 00:00:00 2001 From: Arsen Mirzaev Tatyano-Muradovich Date: Sun, 28 Apr 2024 11:07:56 +0700 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=BA=D0=BE=D1=80=D0=BE=D1=82=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spetsresurs/telegram/robot/entry/system/public/robot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirzaev/spetsresurs/telegram/robot/entry/system/public/robot.php b/mirzaev/spetsresurs/telegram/robot/entry/system/public/robot.php index 8b9813b..521aa83 100644 --- a/mirzaev/spetsresurs/telegram/robot/entry/system/public/robot.php +++ b/mirzaev/spetsresurs/telegram/robot/entry/system/public/robot.php @@ -38,7 +38,7 @@ $bot->onMessage(function (Context $ctx) { if ($members = $ctx->getMessage()->getNewChatMembers()) { // Новый аккаунт в чате echo "Обнаружен новый участник в чате" . PHP_EOL; - $ctx->sendMessage('⚠️ Введите ваш табельный номер', ['reply_to_message_id' => $ctx->getMessage()->getMessageId()]) + $ctx->sendMessage("⚠️ Введите ваш табельный номер", ['reply_to_message_id' => $ctx->getMessage()->getMessageId()]) ->then(function ($message) use ($ctx, $members) { // Инициализация идентификатора сотрудника $id = $members[0]->getId();