Sends a POST request to Telegram Bot API and returns the result.
protected post ( string $endpoint, array $params = [], boolean $fileUpload = false ) : TelegramResponse |
$endpoint |
string |
|
$params |
array |
|
$fileUpload |
boolean |
Set true if a file is being uploaded. |
return |
TelegramResponse |
|