We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62c38a2 commit ba6cb0fCopy full SHA for ba6cb0f
src/Entities/ChatMember/Factory.php
@@ -11,8 +11,7 @@ class Factory extends \Longman\TelegramBot\Entities\Factory
11
{
12
public function make(array $data, string $bot_username): Entity
13
14
- $status = $data['status'];
15
- switch ($status) {
+ switch ($data['status'] ?? '') {
16
case 'creator':
17
return new ChatMemberOwner($data, $bot_username);
18
case 'administrator':
0 commit comments