2024-11-02 00:24:18 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace TgBotLib\Events;
|
|
|
|
|
2024-11-03 18:25:42 -05:00
|
|
|
use TgBotLib\Enums\EventType;
|
2024-11-02 00:24:18 -04:00
|
|
|
use TgBotLib\Objects\BusinessMessagesDeleted;
|
|
|
|
|
|
|
|
abstract class DeletedBusinessMessagesEvent extends UpdateEvent
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
2024-11-03 18:25:42 -05:00
|
|
|
public static function getEventType(): EventType
|
2024-11-02 00:24:18 -04:00
|
|
|
{
|
2024-11-03 18:25:42 -05:00
|
|
|
return EventType::DELETED_BUSINESS_MESSAGES;
|
2024-11-02 00:24:18 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Messages were deleted from a connected business account
|
|
|
|
*
|
|
|
|
* @return BusinessMessagesDeleted
|
|
|
|
*/
|
|
|
|
protected function getBusinessMessagesDeleted(): BusinessMessagesDeleted
|
|
|
|
{
|
|
|
|
return $this->update->getDeletedBusinessMessages();
|
|
|
|
}
|
|
|
|
}
|