Total Complexity | 1 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class SendChatActionMethod implements HasActionVariableInterface, MethodInterface |
||
17 | { |
||
18 | use ChatIdVariableTrait; |
||
19 | |||
20 | /** |
||
21 | * Type of action to broadcast. |
||
22 | * Choose one, depending on what the user is about to receive: |
||
23 | * typing for text messages, |
||
24 | * upload_photo for photos, |
||
25 | * record_video or upload_video for videos, |
||
26 | * record_audio or upload_audio for audio files, |
||
27 | * upload_document for general files, |
||
28 | * find_location for location data, |
||
29 | * record_video_note or upload_video_note for video notes. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | public $action; |
||
34 | |||
35 | /** |
||
36 | * @param int|string $chatId |
||
37 | * @param string $action |
||
38 | * |
||
39 | * @return SendChatActionMethod |
||
40 | */ |
||
41 | 1 | public static function create($chatId, string $action): SendChatActionMethod |
|
50 |