tgbotlib/src/TgBotLib/Events/ShippingQueryEvent.php

27 lines
644 B
PHP
Raw Normal View History

2024-11-01 21:50:21 -04:00
<?php
namespace TgBotLib\Events;
use TgBotLib\Enums\EventType;
2024-11-01 21:50:21 -04:00
use TgBotLib\Objects\Payments\ShippingQuery;
abstract class ShippingQueryEvent extends UpdateEvent
{
/**
* @inheritDoc
*/
public static function getEventType(): EventType
2024-11-01 21:50:21 -04: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();
}
}