Commit 73d8a810 authored by Jack'lul's avatar Jack'lul

getFrom => getChat

parent e515f50c
...@@ -331,7 +331,7 @@ class CleanupCommand extends AdminCommand ...@@ -331,7 +331,7 @@ class CleanupCommand extends AdminCommand
public function executeNoDb() public function executeNoDb()
{ {
$message = $this->getMessage(); $message = $this->getMessage();
$chat_id = $message->getFrom()->getId(); $chat_id = $message->getChat()->getId();
$data = [ $data = [
'chat_id' => $chat_id, 'chat_id' => $chat_id,
...@@ -351,7 +351,7 @@ class CleanupCommand extends AdminCommand ...@@ -351,7 +351,7 @@ class CleanupCommand extends AdminCommand
public function execute() public function execute()
{ {
$message = $this->getMessage(); $message = $this->getMessage();
$chat_id = $message->getFrom()->getId(); $chat_id = $message->getChat()->getId();
$text = $message->getText(true); $text = $message->getText(true);
$data = [ $data = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment