Remove StartCommand test file
This commit is contained in:
parent
7aa6be4e9a
commit
46167099bf
1 changed files with 0 additions and 25 deletions
|
@ -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()
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue