Added event handlers

This commit is contained in:
Netkas 2023-02-19 21:58:08 -05:00
parent 2362365865
commit 11e60c56c4
3 changed files with 226 additions and 1 deletions

View file

@ -0,0 +1,18 @@
<?php
namespace TgBotLib\Interfaces;
use TgBotLib\Bot;
use TgBotLib\Objects\Telegram\Update;
interface EventInterface
{
/**
* Execute the command
*
* @param Bot $bot
* @param Update $update
* @return void
*/
public function handle(Bot $bot, Update $update): void;
}