Skip to content

Commit

Permalink
Support chats comming from webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Sep 19, 2023
1 parent 8360482 commit 6bd6cd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bootstrap/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ public function messageAddedAdmin($params)
if ($params['lhc_caller']['class'] == 'Longman\TelegramBot\Commands\SystemCommands\GenericmessageCommand') {
return;
}

if (isset($params['source']) && $params['source'] == 'webhook') {
return;
}

$this->messageAdded($params);
}

Expand Down

0 comments on commit 6bd6cd7

Please sign in to comment.