Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

downloadToDir stuck #1605

Open
arall opened this issue Jan 21, 2025 · 0 comments
Open

downloadToDir stuck #1605

arall opened this issue Jan 21, 2025 · 0 comments

Comments

@arall
Copy link

arall commented Jan 21, 2025

I'm using the following code to download files from a Telegram channel:

$client->downloadToDir(
    $message['media'],
    $dir,
    new FileCallback(
        $message->download_path,
        function ($progress, $speed, $time) use ($section) {
            $section->overwrite("  - Download progress: $progress%\n  - Speed: $speed mbps\n  - Time elapsed since start: $time");
        }
    )
);

At some point near the end, the console output doesn't update anymore:

Download progress: 99.75%
Speed: 394.95878791809 mbps
Time elapsed since start: 84.170942

And there are no logs in MadelineProto.log:

tail -f MadelineProto.log

Logger:         	MadelineProto 8.4.1
Logger:         	Copyright (C) 2016-2025 Daniil Gentili
Logger:         	Licensed under AGPLv3
Logger:         	https://github.com/danog/MadelineProto
Serialization:  	Got exclusive session lock!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant