We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 the user which seends a message to the bot has a username, there will be an exception thrown while processing webhook updates.
ReflectionException: Property TgBotApi\BotApiBase\Type\ChatType::$username does not exist
If i remove my username in telegram, the message get processed normally.
After a quick test, it seems to be sufficient to simply add a property called $username in the ChatType class.
PHP 7.3 with lando.dev
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Detailed description
When the user which seends a message to the bot has a username, there will be an exception thrown while processing webhook updates.
ReflectionException: Property TgBotApi\BotApiBase\Type\ChatType::$username does not exist
If i remove my username in telegram, the message get processed normally.
Possible implementation
After a quick test, it seems to be sufficient to simply add a property called $username in the ChatType class.
Your environment
PHP 7.3 with lando.dev
The text was updated successfully, but these errors were encountered: