InsanusMokrassar / ktgbotapi

Type-safe library for work with Telegram Bot API
https://docs.inmo.dev/tgbotapi/index.html
Apache License 2.0
361 stars 30 forks source link

onPreCheckoutQuery will not handle queries if OrderInfo contains non-nullable value only in one field #917

Open Towich opened 11 hours ago

Towich commented 11 hours ago

I have an issue with sendInvoice and onPreCheckoutQuery

If sendInvoice have only requireEmail = true but doesn't have all of this:

requireName = true,
requirePhoneNumber = true,
requireShippingAddress = true

then onPreCheckoutQuery will not handle preCheckoutQuery.

I think It's because class OrderInfo have only non-nullable fields, so I guess fields can be nullable

Снимок экрана 2024-11-04 в 19 30 39
github-actions[bot] commented 11 hours ago

Welcome with your first issue