public function sendMediaGroup(
        $chatId,
        $media,
        $disableNotification = false,
        $replyToMessageId = null
    ) {
        return ArrayOfMessages::fromResponse($this->call('sendMediaGroup', [
            'chat_id' => $chatId,
            'media' => $media->toJson(),
            'reply_to_message_id' => (int)$replyToMessageId,
            'disable_notification' => (bool)$disableNotification
        ]));
    }
public function sendMediaGroup(
        $chatId,
        $media,
        $disableNotification = false,
        $replyToMessageId = null
    ) {
        return ArrayOfMessages::fromResponse($this->call('sendMediaGroup', [
            'chat_id' => $chatId,
            'media' => $media->toJson(),
            'reply_to_message_id' => (int)$replyToMessageId,
            'disable_notification' => (bool)$disableNotification
        ]));
    }
public function sendMediaGroup ( $ chatId , $ media , $ disableNotification = false , $ replyToMessageId = null ) { return ArrayOfMessages :: fromResponse ( $ this -> call ( 'sendMediaGroup' , [ 'chat_id' => $ chatId , 'media' => $ media -> toJson ( ) , 'reply_to_message_id' => ( int ) $ replyToMessageId , 'disable_notification' => ( bool ) $ disableNotification ] ) ) ; }
Use this method to send a group of photos or videos as an album.
On success, the sent \TelegramBot\Api\Types\Message is returned.

@param int|string $chatId
@param ArrayOfInputMedia $media
@param int|null $replyToMessageId
@param bool $disableNotification

@return array
@throws \TelegramBot\Api\Exception
Use this method to send a group of photos or videos as an album . On success the sent \ TelegramBot \ Api \ Types \ Message is returned .