From 247bc69b4f216f20ab44621939a619156d7da255 Mon Sep 17 00:00:00 2001 From: mercury Date: Mon, 4 May 2026 23:31:24 +0400 Subject: [PATCH] fix import file --- app/bot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/bot.php b/app/bot.php index 7d70bf7..94c378c 100644 --- a/app/bot.php +++ b/app/bot.php @@ -1462,7 +1462,7 @@ class Bot ]; } - public function importListFile($type) + public function importListFile($message = '', $type) { $r = $this->request('getFile', ['file_id' => $this->input['file_id']]); $f = file_get_contents($this->file . $r['result']['file_path']); @@ -2424,7 +2424,7 @@ class Bot $this->delete($this->input['chat'], $this->input['reply']); $this->delete($this->input['chat'], $this->input['message_id']); $callback = $_SESSION['reply'][$this->input['reply']]['callback']; - $this->input['message_id'] = $this->input['callback_id'] = $_SESSION['reply'][$this->input['reply']]['start_message']; + $this->input['message_id'] = $this->input['callback_id'] = $_SESSION['reply'][$this->input['reply']]['start_message']; $this->{$callback}($this->input['message'], ...$_SESSION['reply'][$this->input['reply']]['args']); $this->answer($_SESSION['reply'][$this->input['reply']]['start_message']); unset($_SESSION['reply'][$this->input['reply']]);