1 | <?php |
||
22 | class PromoteChatMember extends TelegramMethods |
||
23 | { |
||
24 | /** |
||
25 | * Unique identifier for the target chat or username of the target supergroup or channel (in the format |
||
26 | * @channelusername) |
||
27 | * @var string |
||
28 | */ |
||
29 | public $chat_id = ''; |
||
30 | |||
31 | /** |
||
32 | * Unique identifier of the target user |
||
33 | * @var int |
||
34 | */ |
||
35 | public $user_id = 0; |
||
36 | |||
37 | /** |
||
38 | * Pass True, if the administrator can change chat title, photo and other settings |
||
39 | * @var bool |
||
40 | */ |
||
41 | public $can_change_info = false; |
||
42 | |||
43 | /** |
||
44 | * Pass True, if the administrator can create channel posts, channels only |
||
45 | * @var bool |
||
46 | */ |
||
47 | public $can_post_messages = false; |
||
48 | |||
49 | /** |
||
50 | * Pass True, if the administrator can edit messages of other users, channels only |
||
51 | * @var bool |
||
52 | */ |
||
53 | public $can_edit_messages = false; |
||
54 | |||
55 | /** |
||
56 | * Pass True, if the administrator can delete messages of other users |
||
57 | * @var bool |
||
58 | */ |
||
59 | public $can_delete_messages = false; |
||
60 | |||
61 | /** |
||
62 | * Pass True, if the administrator can invite new users to the chat |
||
63 | * @var bool |
||
64 | */ |
||
65 | public $can_invite_users = false; |
||
66 | |||
67 | /** |
||
68 | * Pass True, if the administrator can restrict, ban or unban chat members |
||
69 | * @var bool |
||
70 | */ |
||
71 | public $can_restrict_members = false; |
||
72 | |||
73 | /** |
||
74 | * Pass True, if the administrator can pin messages, supergroups only |
||
75 | * @var bool |
||
76 | */ |
||
77 | public $can_pin_messages = false; |
||
78 | |||
79 | /** |
||
80 | * Pass True, if the administrator can add new administrators with a subset of his own privileges or demote |
||
81 | * administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by |
||
82 | * him) |
||
83 | * @var bool |
||
84 | */ |
||
85 | public $can_promote_members = false; |
||
86 | |||
87 | |||
88 | public static function bindToObject(TelegramRawData $data, LoggerInterface $logger): TelegramTypes |
||
92 | |||
93 | public function getMandatoryFields(): array |
||
100 | } |
||
101 |