TelegramApiServer
in package
Read onlyYes
FinalYes
Table of Contents
Properties
Methods
- __construct() : mixed
- apiUrl() : string
- fileUrl() : string
- fromBase() : self
- production() : self
- test() : self
Properties
$base
public
string
$base
$file
public
string
$file
$isLocal
public
bool
$isLocal
= false
Methods
__construct()
public
__construct(string $base, string $file[, bool $isLocal = false ]) : mixed
Parameters
- $base : string
- $file : string
- $isLocal : bool = false
apiUrl()
public
apiUrl(string $token, string $method) : string
Parameters
- $token : string
- $method : string
Return values
stringfileUrl()
public
fileUrl(string $token, string $path) : string
Parameters
- $token : string
- $path : string
Return values
stringfromBase()
public
static fromBase(string $base[, bool $isLocal = false ]) : self
Parameters
- $base : string
- $isLocal : bool = false
Return values
selfproduction()
public
static production() : self
Return values
selftest()
public
static test() : self