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

The sendPhoto doesn't return a Message object #14

Closed
sergix44 opened this issue Dec 8, 2020 · 1 comment
Closed

The sendPhoto doesn't return a Message object #14

sergix44 opened this issue Dec 8, 2020 · 1 comment

Comments

@sergix44
Copy link
Collaborator

sergix44 commented Dec 8, 2020

In this case:

    $i = new InputFile($ctx->getEffectiveUser()->getId() . '.png');

    $ctx->sendPhoto($i, [
        'chat_id' => $id,
    ])->then(function (Message $message) {
        var_dump($message);
    });

The then closure is never called. If done the the sendMessage endpoint, works as expected.

@cheeghi
Copy link
Collaborator

cheeghi commented Dec 8, 2020

Fixed in 0.5.4

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

2 participants