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

Fatal error on Update #15

Closed
unreal4u opened this issue Nov 21, 2016 · 1 comment
Closed

Fatal error on Update #15

unreal4u opened this issue Nov 21, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@unreal4u
Copy link
Owner

When the Update contains a new Object type, the following fatal is given:

PHP message: PHP Fatal error:  Uncaught TypeError: Return value of unreal4u\TelegramAPI\Abstracts\TelegramTypes::mapSubObjects() must be an instance of unreal4u\TelegramAPI\Abstracts\TelegramTypes, null returned in /.../vendor/unreal4u/telegram-api/src/Abstracts/TelegramTypes.php:71
Stack trace:
#0 /.../vendor/unreal4u/telegram-api/src/Telegram/Types/Message.php(267): unreal4u\TelegramAPI\Abstracts\TelegramTypes->mapSubObjects('new_chat_member', Array)

In the case of this particular one, it was because new_chat_participant and left_chat_participant changed to new_chat_member and left_chat_member respectively (In Bot API 2.0)

@unreal4u unreal4u added this to the v2.1.0 milestone Nov 21, 2016
@unreal4u unreal4u self-assigned this Nov 21, 2016
unreal4u added a commit that referenced this issue Nov 21, 2016
new_chat_participant => new_chat_member
left_chat_participant => left_chat_member
@unreal4u
Copy link
Owner Author

Fixed in 99ec6b1

Will be merged today to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant