Skip to content

Commit

Permalink
Fix help command not working in group chats
Browse files Browse the repository at this point in the history
Reply was sent to sender's chat instead of the group.
  • Loading branch information
0xEAB committed Sep 3, 2017
1 parent dfde871 commit a0b9040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Commands/HelpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ class HelpCommand extends UserCommand
/**
* @var string
*/
protected $version = '1.2.0';
protected $version = '1.2.1';

/**
* @inheritdoc
*/
public function execute()
{
$message = $this->getMessage();
$chat_id = $message->getFrom()->getId();
$chat_id = $message->getChat()->getId();
$command_str = trim($message->getText(true));

$data = [
Expand Down

0 comments on commit a0b9040

Please sign in to comment.