Commit dcff25fa authored by Jack'lul's avatar Jack'lul

supergroup_chat_created works just like group_chat_created

parent 6f14d32f
......@@ -29,23 +29,9 @@ class SupergroupchatcreatedCommand extends SystemCommand
/**
* {@inheritdoc}
*/
public function execute()
/*public function execute()
{
$message = $this->getMessage();
$chat_id = $message->getChat()->getId();
$text = '';
if ($message->getSuperGroupChatCreated()) {
$text = 'Your group has become a Supergroup!' . "\n";
$text .= 'Chat id has changed from ' . $message->getMigrateFromChatId() . ' to ' . $message->getMigrateToChatId();
}
$data = [
'chat_id' => $chat_id,
'text' => $text,
];
return Request::sendMessage($data);
}
//$message = $this->getMessage();
//$supergroup_chat_created = $message->getSuperGroupChatCreated();
}*/
}
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