2024-11-01 21:50:21 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace TgBotLib\Events;
|
|
|
|
|
2024-11-03 18:25:42 -05:00
|
|
|
use TgBotLib\Enums\EventType;
|
2024-11-01 21:50:21 -04:00
|
|
|
use TgBotLib\Objects\Payments\ShippingQuery;
|
|
|
|
|
|
|
|
abstract class ShippingQueryEvent extends UpdateEvent
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
2024-11-03 18:25:42 -05:00
|
|
|
public static function getEventType(): EventType
|
2024-11-01 21:50:21 -04:00
|
|
|
{
|
2024-11-03 18:25:42 -05:00
|
|
|
return EventType::SHIPPING_QUERY;
|
2024-11-01 21:50:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* New incoming shipping query. Only for invoices with flexible price
|
|
|
|
*
|
|
|
|
* @return ShippingQuery
|
|
|
|
*/
|
|
|
|
protected function getShippingQuery(): ShippingQuery
|
|
|
|
{
|
|
|
|
return $this->update->getShippingQuery();
|
|
|
|
}
|
|
|
|
}
|