PhpBotFramework  2.0.2
A framework for Telegram Bots' APIs.
Public Member Functions | List of all members
PhpBotFramework\Entities\File Class Reference

Public Member Functions

 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 ()
 

Member Function Documentation

◆ 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$fileFile_id or local/remote path to the file.
string$format_nameFormat 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: