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

getFrom => getChat

parent e515f50c
......@@ -331,7 +331,7 @@ class CleanupCommand extends AdminCommand
public function executeNoDb()
{
$message = $this->getMessage();
$chat_id = $message->getFrom()->getId();
$chat_id = $message->getChat()->getId();
$data = [
'chat_id' => $chat_id,
......@@ -351,7 +351,7 @@ class CleanupCommand extends AdminCommand
public function execute()
{
$message = $this->getMessage();
$chat_id = $message->getFrom()->getId();
$chat_id = $message->getChat()->getId();
$text = $message->getText(true);
$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