Skip to content

Commit cb212b5

Browse files
authored
Missing USEs
function isUserAllowedToAddBot() has if ($chat_member instanceof ChatMember) { if you don't put the use, then PHP needs the full class name such as Longman\TelegramBot\Entities\ChatMember\ChatMemberOwner
1 parent e45b1bb commit cb212b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

commands/NewchatmembersCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
use Longman\TelegramBot\Exception\TelegramException;
2626
use Longman\TelegramBot\Request;
2727
use TelegramBot\SupportBot\Helpers;
28-
28+
use Longman\TelegramBot\Entities\ChatMember\ChatMember;
29+
use Longman\TelegramBot\Entities\ChatMember\ChatMemberOwner;
30+
use Longman\TelegramBot\Entities\ChatMember\ChatMemberAdministrator
31+
2932
/**
3033
* Send a welcome message to new chat members.
3134
*/

0 commit comments

Comments
 (0)