|
| | init (string $file, string $format_name) |
| | Fill this object with another file. More...
|
| |
| bool | isLocal () |
| | (Internal) Check if the path to the file given is local or a file_id/url. More...
|
| |
| string | getString () |
| | (Internal) Get string component of this file. More...
|
| |
|
| getResource () |
| |
|
| getFormatName () |
| |
◆ getString()
| string PhpBotFramework\Entities\File::getString |
( |
| ) |
|
(Internal) Get string component of this file.
- Returns
- string File as string (file_id/path to the file).
◆ init()
| PhpBotFramework\Entities\File::init |
( |
string |
$file, |
|
|
string |
$format_name |
|
) |
| |
Fill this object with another file.
- Parameters
-
| string | $file | File_id or local/remote path to the file. |
| string | $format_name | Format name of the file (audio, document, ...) |
◆ isLocal()
| bool PhpBotFramework\Entities\File::isLocal |
( |
| ) |
|
(Internal) Check if the path to the file given is local or a file_id/url.
- Returns
- bool True if the file is a local path.
The documentation for this class was generated from the following file: