Pcore::API::Telegram::Bot
use Pcore::API::Telegram::Bot; my $bot = Pcore::API::Telegram::Bot->new( key => $key ); $bot->{on_message} = sub ( $bot, $msg ) { if ( $msg->{message}->{text} eq '/' ) { $bot->send_message( $msg->{message}->{chat}->{id}, 'вывывывыэ' ); } return; }; $bot->poll_updates;
To install Pcore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pcore
CPAN shell
perl -MCPAN -e shell install Pcore
For more information on module installation, please visit the detailed CPAN module installation guide.