mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 20:47:56 +08:00
update telegram
This commit is contained in:
@ -6,9 +6,9 @@ use \Curl\Curl;
|
||||
class TelegramService {
|
||||
protected $api;
|
||||
|
||||
public function __construct()
|
||||
public function __construct(string $token = '')
|
||||
{
|
||||
$this->api = 'https://api.telegram.org/bot' . config('v2board.telegram_bot_token') . '/';
|
||||
$this->api = 'https://api.telegram.org/bot' . config('v2board.telegram_bot_token', $token) . '/';
|
||||
}
|
||||
|
||||
public function sendMessage(int $chatId, string $text, string $parseMode = '')
|
||||
|
Reference in New Issue
Block a user