Add PreCheckoutQueryEvent handling

This commit is contained in:
netkas 2024-11-01 21:33:47 -04:00
parent c57cdfe05c
commit f1342e3f42
3 changed files with 36 additions and 0 deletions

View file

@ -101,6 +101,11 @@
return UpdateEventType::PAID_MEDIA_PURCHASED;
}
if($update->getPreCheckoutQuery() !== null)
{
return UpdateEventType::PRE_CHECKOUT_QUERY;
}
return UpdateEventType::UPDATE_EVENT;
}
}