mirror of
https://github.com/v2board/v2board.git
synced 2025-06-14 13:47:49 +08:00
update telegram
This commit is contained in:
@ -20,10 +20,16 @@ class Telegram {
|
||||
]);
|
||||
}
|
||||
|
||||
public function getMe()
|
||||
{
|
||||
dd($this->request('getMe'));
|
||||
}
|
||||
|
||||
private function request(string $method, array $params)
|
||||
{
|
||||
$curl = new Curl();
|
||||
$curl->post($this->api . $method, http_build_query($params));
|
||||
$curl->get($this->api . $method, http_build_query($params));
|
||||
$curl->close();
|
||||
return $curl->response;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user