1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
|
4
|
|
|
namespace Longman\TelegramBot\Entities\ChatMember; |
5
|
|
|
|
6
|
|
|
|
7
|
|
|
use Longman\TelegramBot\Entities\Entity; |
8
|
|
|
use Longman\TelegramBot\Entities\User; |
9
|
|
|
|
10
|
|
|
/** |
11
|
|
|
* Class ChatMemberRestricted |
12
|
|
|
* |
13
|
|
|
* @link https://core.telegram.org/bots/api#chatmemberrestricted |
14
|
|
|
* |
15
|
|
|
* @method string getStatus() The member's status in the chat, always “restricted” |
16
|
|
|
* @method User getUser() Information about the user |
17
|
|
|
* @method bool getIsMember() True, if the user is a member of the chat at the moment of the request |
18
|
|
|
* @method bool getCanChangeInfo() True, if the user is allowed to change the chat title, photo and other settings |
19
|
|
|
* @method bool getCanInviteUsers() True, if the user is allowed to invite new users to the chat |
20
|
|
|
* @method bool getCanPinMessages() True, if the user is allowed to pin messages; groups and supergroups only |
21
|
|
|
* @method bool getCanSendMessages() True, if the user is allowed to send text messages, contacts, locations and venues |
22
|
|
|
* @method bool getCanSendMediaMessages() True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes |
23
|
|
|
* @method bool getCanSendPolls() True, if the user is allowed to send polls |
24
|
|
|
* @method bool getCanSendOtherMessages() True, if the user is allowed to send animations, games, stickers and use inline bots |
25
|
|
|
* @method bool getCanAddWebPagePreviews() True, if the user is allowed to add web page previews to their messages |
26
|
|
|
* @method int getUntilDate() Date when restrictions will be lifted for this user; unix time |
27
|
|
|
*/ |
28
|
|
|
class ChatMemberRestricted extends Entity implements ChatMember |
29
|
|
|
{ |
30
|
|
|
/** |
31
|
|
|
* @inheritDoc |
32
|
|
|
*/ |
33
|
|
|
protected function subEntities(): array |
34
|
|
|
{ |
35
|
|
|
return [ |
36
|
|
|
'user' => User::class |
37
|
|
|
]; |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
} |
41
|
|
|
|