1 | <?php |
||
31 | class SendMediaGroup extends TelegramMethods |
||
32 | { |
||
33 | /** |
||
34 | * Unique identifier for the target chat or username of the target channel (in the format @channelusername) |
||
35 | * @var string |
||
36 | */ |
||
37 | public $chat_id = ''; |
||
38 | |||
39 | /** |
||
40 | * A JSON-serialized array describing photos and videos to be sent |
||
41 | * @var InputMedia[] |
||
42 | */ |
||
43 | public $media = []; |
||
44 | |||
45 | /** |
||
46 | * @var InputFile[] |
||
47 | */ |
||
48 | private $localFiles = []; |
||
49 | |||
50 | /** |
||
51 | * Optional. Sends the message silently. iOS users will not receive a notification, Android users will receive a |
||
52 | * notification with no sound. |
||
53 | * @see https://telegram.org/blog/channels-2-0#silent-messages |
||
54 | * @var bool |
||
55 | */ |
||
56 | public $disable_notification = false; |
||
57 | |||
58 | /** |
||
59 | * Optional. If the message is a reply, ID of the original message |
||
60 | * @var int |
||
61 | */ |
||
62 | public $reply_to_message_id = 0; |
||
63 | |||
64 | public function getMandatoryFields(): array |
||
71 | |||
72 | public static function bindToObject(TelegramResponse $data, LoggerInterface $logger): TelegramTypes |
||
76 | |||
77 | public function performSpecialConditions(): TelegramMethods |
||
93 | |||
94 | /** |
||
95 | * Helper function that performs some special operations should a local file be detected |
||
96 | * |
||
97 | * @return self |
||
98 | */ |
||
99 | private function performSpecialOperationsOnLocalFiles(): self |
||
114 | |||
115 | /** |
||
116 | * @return Generator|InputFile[] |
||
117 | */ |
||
118 | public function getLocalFiles(): Generator |
||
122 | |||
123 | /** |
||
124 | * Will return true if local files are present, false otherwise |
||
125 | * |
||
126 | * @return bool |
||
127 | */ |
||
128 | public function hasLocalFiles(): bool |
||
132 | } |
||
133 |