botman / driver-telegram

BotMan Telegram Driver
MIT License
86 stars 75 forks source link

Support pre_checkout_query updates as events #121

Closed chimit closed 3 weeks ago

chimit commented 3 weeks ago

This PR allows you to listen to the pre_checkout_query which is mandatory for receiving payments in Telegram. You can listen to the pre_checkout_query in the same way as you do for other generic events like pinned_message or new_chat_members:

$botman->on('pre_checkout_query', function ($payload, $bot) {
    //
});
chimit commented 3 weeks ago

@filippotoso, could you, please, merge it?