Total Complexity | 2 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 87.5% |
Changes | 0 |
1 | <?php |
||
17 | class ForwardMessageMethod implements SendMethodAliasInterface, ForwardMethodAliasInterface |
||
18 | { |
||
19 | use FillFromArrayTrait; |
||
20 | use ChatIdVariableTrait; |
||
21 | /** |
||
22 | * Unique identifier for the chat where the original message was sent |
||
23 | * (or channel username in the format @channelusername). |
||
24 | * |
||
25 | * @var int|string |
||
26 | */ |
||
27 | public $fromChatId; |
||
28 | |||
29 | /** |
||
30 | * Optional. Sends the message silently. Users will receive a notification with no sound. |
||
31 | * |
||
32 | * @var bool|null |
||
33 | */ |
||
34 | public $disableNotification; |
||
35 | |||
36 | /** |
||
37 | * Message identifier in the chat specified in from_chat_id. |
||
38 | * |
||
39 | * @var int |
||
40 | */ |
||
41 | public $messageId; |
||
42 | |||
43 | /** |
||
44 | * @param int|string $chatId |
||
45 | * @param int|string $fromChatId |
||
46 | * @param int $messageId |
||
47 | * @param array|null $data |
||
48 | * |
||
49 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
50 | * |
||
51 | * @return ForwardMessageMethod |
||
52 | */ |
||
53 | 1 | public static function create($chatId, $fromChatId, int $messageId, array $data = null): ForwardMessageMethod |
|
66 |