28 lines
No EOL
654 B
PHP
28 lines
No EOL
654 B
PHP
<?php
|
|
|
|
namespace TgBotLib\Events;
|
|
|
|
use TgBotLib\Abstracts\UpdateEvent;
|
|
use TgBotLib\Enums\UpdateEventType;
|
|
use TgBotLib\Objects\CallbackQuery;
|
|
|
|
abstract class CallbackQueryEvent extends UpdateEvent
|
|
{
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public static function getEventType(): UpdateEventType
|
|
{
|
|
return UpdateEventType::CALLBACK_QUERY;
|
|
}
|
|
|
|
/**
|
|
* New incoming callback query
|
|
*
|
|
* @return CallbackQuery
|
|
*/
|
|
protected function getCallbackQuery(): CallbackQuery
|
|
{
|
|
return $this->update->getCallbackQuery();
|
|
}
|
|
} |