mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 20:47:56 +08:00
update: telegram bot modularization
This commit is contained in:
15
app/Plugins/Telegram/Telegram.php
Normal file
15
app/Plugins/Telegram/Telegram.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Plugins\Telegram;
|
||||
|
||||
use App\Services\TelegramService;
|
||||
|
||||
abstract class Telegram {
|
||||
abstract protected function handle($message, $match);
|
||||
public $telegramService;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->telegramService = new TelegramService();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user