Added CommandHandler
This commit is contained in:
parent
eacc106666
commit
2362365865
5 changed files with 134 additions and 3 deletions
18
src/TgBotLib/Interfaces/CommandInterface.php
Normal file
18
src/TgBotLib/Interfaces/CommandInterface.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Interfaces;
|
||||
|
||||
use TgBotLib\Bot;
|
||||
use TgBotLib\Objects\Telegram\Update;
|
||||
|
||||
interface CommandInterface
|
||||
{
|
||||
/**
|
||||
* Execute the command
|
||||
*
|
||||
* @param Bot $bot
|
||||
* @param Update $update
|
||||
* @return void
|
||||
*/
|
||||
public function handle(Bot $bot, Update $update): void;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue