| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| 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 | * @param int|string $chatId |
||
| 33 | * @param InputFileType|string $sticker |
||
| 34 | * @param array|null $data |
||
| 35 | * |
||
| 36 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
| 37 | * |
||
| 38 | * @return SendStickerMethod |
||
| 39 | */ |
||
| 40 | 2 | public static function create($chatId, $sticker, array $data = null): SendStickerMethod |
|
| 52 |