Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class PinChatMessageMethod |
||
17 | { |
||
18 | use FillFromArrayTrait; |
||
19 | use ChatIdVariableTrait; |
||
20 | use MessageIdVariableTrait; |
||
21 | |||
22 | /** |
||
23 | * Optional. Pass True, if it is not necessary to send a notification to all chat members about the new |
||
24 | * pinned message. Notifications are always disabled in channels. |
||
25 | * |
||
26 | * @var bool|null |
||
27 | */ |
||
28 | public $disableNotification; |
||
29 | |||
30 | /** |
||
31 | * @param int|string $chatId |
||
32 | * @param int $messageId |
||
33 | * @param array|null $data |
||
34 | * |
||
35 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
36 | * |
||
37 | * @return PinChatMessageMethod |
||
38 | */ |
||
39 | 3 | public static function create($chatId, int $messageId, array $data = null): PinChatMessageMethod |
|
51 |