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