Skip to content

Commit

Permalink
Removing unusful var
Browse files Browse the repository at this point in the history
  • Loading branch information
MBoretto committed Aug 8, 2015
1 parent 2d79bca commit 4eef4d4
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/Telegram.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ public function handle()
default:
case 'text':
// do nothing

break;

case 'command':
Expand All @@ -310,42 +309,30 @@ public function handle()

case 'new_chat_participant':
// trigger new participant
$command = 'new_chat_participant';
return $this->executeCommand(Newchatparticipant, $update);
return $this->executeCommand('Newchatparticipant', $update);
break;

case 'left_chat_participant':
// trigger left chat participant
$command = 'left_chat_participant';
return $this->executeCommand(Leftchatparticipant, $update);
return $this->executeCommand('Leftchatparticipant', $update);
break;


case 'new_chat_title':
// trigger new_chat_title


break;


case 'delete_chat_photo':
// trigger delete_chat_photo


break;


case 'group_chat_created':
// trigger group_chat_created


break;




}

}


Expand Down

0 comments on commit 4eef4d4

Please sign in to comment.