29 lines
775 B
PHP
29 lines
775 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace TgBotLib\Events;
|
||
|
|
||
|
use TgBotLib\Abstracts\UpdateEvent;
|
||
|
use TgBotLib\Bot;
|
||
|
use TgBotLib\Enums\UpdateEventType;
|
||
|
use TgBotLib\Objects\BusinessMessagesDeleted;
|
||
|
|
||
|
abstract class DeletedBusinessMessagesEvent extends UpdateEvent
|
||
|
{
|
||
|
/**
|
||
|
* @inheritDoc
|
||
|
*/
|
||
|
public static function getEventType(): UpdateEventType
|
||
|
{
|
||
|
return UpdateEventType::DELETED_BUSINESS_MESSAGES;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Messages were deleted from a connected business account
|
||
|
*
|
||
|
* @return BusinessMessagesDeleted
|
||
|
*/
|
||
|
protected function getBusinessMessagesDeleted(): BusinessMessagesDeleted
|
||
|
{
|
||
|
return $this->update->getDeletedBusinessMessages();
|
||
|
}
|
||
|
}
|