27 lines
No EOL
588 B
PHP
27 lines
No EOL
588 B
PHP
<?php
|
|
|
|
namespace TgBotLib\Events;
|
|
|
|
use TgBotLib\Enums\EventType;
|
|
use TgBotLib\Objects\Inline\InlineQuery;
|
|
|
|
abstract class InlineQueryEvent extends UpdateEvent
|
|
{
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public static function getEventType(): EventType
|
|
{
|
|
return EventType::INLINE_QUERY;
|
|
}
|
|
|
|
/**C
|
|
* New incoming inline query
|
|
*
|
|
* @return InlineQuery
|
|
*/
|
|
protected function getInlineQuery(): InlineQuery
|
|
{
|
|
return $this->update->getInlineQuery();
|
|
}
|
|
} |