| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class SendStickerMethod |
||
| 17 | { |
||
| 18 | use FillFromArrayTrait; |
||
| 19 | use SendToChatVariablesTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Sticker to send. |
||
| 23 | * Pass a file_id as String to send a file that exists on the Telegram servers (recommended), |
||
| 24 | * pass an HTTP URL as a String for Telegram to get a .webp file from the Internet, |
||
| 25 | * or upload a new one using multipart/form-data. |
||
| 26 | * |
||
| 27 | * @var InputFileType|string |
||
| 28 | */ |
||
| 29 | public $sticker; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * SendStickerMethod constructor. |
||
| 33 | * |
||
| 34 | * @param int|string $chatId |
||
| 35 | * @param InputFileType|string $sticker |
||
| 36 | * @param array|null $data |
||
| 37 | * |
||
| 38 | * @throws \Greenplugin\TelegramBot\Exception\BadArgumentException |
||
| 39 | */ |
||
| 40 | public function __construct($chatId, $sticker, array $data = null) |
||
| 49 |