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

Error when receiving paidMediaPurchased #121

Closed
injektion opened this issue Oct 25, 2024 · 4 comments
Closed

Error when receiving paidMediaPurchased #121

injektion opened this issue Oct 25, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@injektion
Copy link
Contributor

Error when receiving Vjik\TelegramBot\Api\Type\Payment\PaidMediaPurchased with a payload

development.ERROR: Not found key "paid_media_payload" in result object. {"exception":"[object] (Vjik\TelegramBot\Api\ParseResult\NotFoundKeyInResultException(code: 0): Not found key "paid_media_payload" in result object.

{
"update_id": 1585xxxxx,
"purchased_paid_media": {
"from": {
"id": 13136xxxxx,
"is_bot": false,
"first_name": "X",
"last_name": "X",
"username": "xxxxxxxxxx",
"language_code": "en"
},
"payload": "12345"
}
}

@vjik
Copy link
Owner

vjik commented Oct 25, 2024

Is docs non-actual?

https://core.telegram.org/bots/api#paidmediapurchased

Here field is called "paid_media_payload"...

@injektion
Copy link
Contributor Author

Seems incorrect. That json above is a raw request capture… is just “payload” outside of the purchased_paid_media object.

The PR I submitted fixes it.

@vjik vjik added the bug Something isn't working label Oct 26, 2024
@vjik
Copy link
Owner

vjik commented Oct 26, 2024

Done by #122

@vjik vjik closed this as completed Oct 26, 2024
@vjik
Copy link
Owner

vjik commented Oct 26, 2024

@injektion Thanks for issue! Version 0.4.4 with your fix is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants