Remove StartCommand test file

This commit is contained in:
netkas 2024-09-30 02:34:17 -04:00
parent 7aa6be4e9a
commit 46167099bf

View file

@ -1,25 +0,0 @@
<?php
namespace commands;
use TgBotLib\Bot;
use TgBotLib\Exceptions\TelegramException;
use TgBotLib\Interfaces\CommandInterface;
use TgBotLib\Objects\Telegram\Update;
class StartCommand implements CommandInterface
{
/**
* @param Bot $bot
* @param Update $update
* @return void
* @throws TelegramException
*/
public function handle(Bot $bot, Update $update): void
{
// reply to the incoming message
$bot->sendMessage(
$update->getMessage()?->getChat()?->getId(), 'Hello, ' . $update->getMessage()?->getFrom()?->getFirstName()
);
}
}