Added CommandHandler

This commit is contained in:
Netkas 2023-02-19 17:25:59 -05:00
parent eacc106666
commit 2362365865
5 changed files with 134 additions and 3 deletions

View 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;
}