28 lines
No EOL
783 B
PHP
28 lines
No EOL
783 B
PHP
<?php
|
|
|
|
namespace TgBotLib\Events;
|
|
|
|
use TgBotLib\Abstracts\UpdateEvent;
|
|
use TgBotLib\Enums\UpdateEventType;
|
|
use TgBotLib\Objects\BusinessConnection;
|
|
|
|
abstract class BusinessConnectionEvent extends UpdateEvent
|
|
{
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public static function getEventType(): UpdateEventType
|
|
{
|
|
return UpdateEventType::BUSINESS_CONNECTION;
|
|
}
|
|
|
|
/**
|
|
* Fetches the BusinessConnection instance associated with this update.
|
|
*
|
|
* @return BusinessConnection The business connection associated with this update.
|
|
*/
|
|
protected function getBusinessConnection(): BusinessConnection
|
|
{
|
|
return $this->update->getBusinessConnection();
|
|
}
|
|
} |