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

Throws exception when the sending user has a username #13

Closed
jan-di opened this issue Jan 18, 2020 · 0 comments · Fixed by #14
Closed

Throws exception when the sending user has a username #13

jan-di opened this issue Jan 18, 2020 · 0 comments · Fixed by #14

Comments

@jan-di
Copy link
Contributor

jan-di commented Jan 18, 2020

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

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

Successfully merging a pull request may close this issue.

1 participant