Net::API::Telegram::InputFile - The contents of a file to be uploaded
my $msg = Net::API::Telegram::InputFile->new( %data ) || die( Net::API::Telegram::InputFile->error, "\n" );
Net::API::Telegram::InputFile is a Telegram Message Object as defined here https://core.telegram.org/bots/api#inputfile
new() will create a new object for the package, pass any argument it might receive to the special standard routine init that must exist. It takes one mandatory parameter which is either a scalar for raw data or a file path.
Then it returns what returns init().
The valid parameters are as follow. Methods available here are also parameters to the new method.
verbose
debug
Set or get the raw data for this object.
If no data was set, but a file was set then this will read the file and return its content.
It returns the current content set.
Set or get the file path of the file for this object.
This method will perform some basic sanitary checks on the accessibility of the given file path, and its permissions and return error if the file has problems.
It returns the current file set.
Given a file path, this method will save the content of the file in this object to the specified file path.
Before doing so, this method will perform some sanity check on the parent directory to ensure the action can actually be done. It will return an error if problems were found.
Copyright (c) 2000-2019 DEGUEST Pte. Ltd.
Jacques Deguest <jack@deguest.jp>
Net::API::Telegram
To install Net::API::Telegram, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::API::Telegram
CPAN shell
perl -MCPAN -e shell install Net::API::Telegram
For more information on module installation, please visit the detailed CPAN module installation guide.