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

When I get response as assoc array this code breaks #21

Open
davemodis opened this issue Nov 4, 2020 · 1 comment
Open

When I get response as assoc array this code breaks #21

davemodis opened this issue Nov 4, 2020 · 1 comment

Comments

@davemodis
Copy link

davemodis commented Nov 4, 2020

else if(is_array($value))//for method getUpdates()
{
$result = [];
foreach ($value as $val) {
$result[] = new Input($val);
}
$this->_result = $result;
}

This code works ok for getUpdates. But if you try to use editMessageText for example, you'll get exception.
I have been to downgrade to make my code works.

@akbarjoudi
Copy link
Owner

Dear friend @davemodis
I tested what you said and saw no error in the code.
If you can tell all the conditions of your application so that we can simulate and fix the problem

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