You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add declarative handler for successful payments to com.bot4s.telegram.api.declarative.Payments like it is done for com.bot4s.telegram.api.declarative.Payments#onPreCheckoutQuery.
The text was updated successfully, but these errors were encountered:
You can add this extension yourself, it's not there by default since successful payments come attached to a message and not in an Update which is the common pattern for these extension methods.
Here's how it would look like:
@mukel Thanks a lot. I have already done that. I filed this issue to pick up it later.
It seems reasonable to have such trait in core lib that having it implemented everywhere.
If we have onPreCheckoutQuery directive, what is the reason for not adding onSuccessfulPayment to core library?
Docs: https://core.telegram.org/bots/api#successfulpayment
Add declarative handler for successful payments to
com.bot4s.telegram.api.declarative.Payments
like it is done forcom.bot4s.telegram.api.declarative.Payments#onPreCheckoutQuery
.The text was updated successfully, but these errors were encountered: