Commit e6f936f4 authored by MBoretto's avatar MBoretto

Fix Newchatparticipantbug

parent 154e33ce
...@@ -14,13 +14,14 @@ use Longman\TelegramBot\Request; ...@@ -14,13 +14,14 @@ use Longman\TelegramBot\Request;
use Longman\TelegramBot\Command; use Longman\TelegramBot\Command;
use Longman\TelegramBot\Entities\Update; use Longman\TelegramBot\Entities\Update;
class Newchatparticipantcommand extends Command class NewchatparticipantCommand extends Command
{ {
protected $name = 'new_chat_participant'; protected $name = 'new_chat_participant';
protected $description = 'New Chat Participant'; protected $description = 'New Chat Participant';
protected $usage = '/'; protected $usage = '/';
protected $version = '1.0.0'; protected $version = '1.0.0';
protected $enabled = true; protected $enabled = true;
protected $public = true;
public function execute() public function execute()
{ {
......
...@@ -311,13 +311,13 @@ class Telegram ...@@ -311,13 +311,13 @@ class Telegram
case 'new_chat_participant': case 'new_chat_participant':
// trigger new participant // trigger new participant
$command = 'new_chat_participant'; $command = 'new_chat_participant';
return $this->executeCommand($command, $update); return $this->executeCommand(Newchatparticipant, $update);
break; break;
case 'left_chat_participant': case 'left_chat_participant':
// trigger left chat participant // trigger left chat participant
$command = 'left_chat_participant'; $command = 'left_chat_participant';
return $this->executeCommand($command, $update); return $this->executeCommand(Leftchatparticipant, $update);
break; break;
......
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