SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Telebot rpm build for : OpenSuSE. For other distributions click perl-Telebot.

Name : perl-Telebot
Version : 0.01 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp156.1.1 Date : 2024-07-03 19:06:53
Group : Unspecified Source RPM : perl-Telebot-0.01-lp156.1.1.src.rpm
Size : 0.12 MB
Packager : https://www_suse_com/
Summary : Mojolicious-based Telegram bot
Description :
This library helps to create mojolicious based Telegram bots. Application
works via telegram webhooks. It creates route and register it in telegram.
Requests form telegram are processed on this route. Application processes
requests via minion tasks to minimize web interaction time. You can include
your application logic in so called handlers. You have several types of
handlers - one for update and one for each possible part of update.
Handlers are located in *lib/Handler* folder and have corresponding names:

Update.pm

CallbackQuery.pm
ChannelPost.pm
ChatJoinRequest.pm
ChatMember.pm
ChosenInlineResult.pm
EditedChannelPost.pm
EditedMessage.pm
InlineQuery.pm
Message.pm
MyChatMember.pm
Poll.pm
PollAnswer.pm
PreCheckoutQuery.pm
ShippingQuery.pm

To implement your logic you must overwrite subroutine *run*

package My::Bot::Handler::Message;
use Mojo::Base \'Telebot::Handler\', -signatures;

sub run ($self) {



$self;
}

1;

Handler have attributes *app* - reference to application, *payload* - data
recieved from update, *update_id* - Telegram ID of update.

Handler *Update* gets full update paypload. Typed handlers gets only
corresponding part of update.

For example if incoming update contain message - two handlers will be
executed - Update and Message. Update will recieve full update payload,
Message only message part of update.

For interaction with Telegram API you can use helper *tg:request*

$self->app->tg->request(getMe => {});

$self->app->tg->request(sendLocation => {
chat_id => 777,
latitude => 90-rand(180),
longitude => 180-rand(360),
});

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.6/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Telebot-0.01-lp156.1.1.noarch.rpm
     

Provides :
perl(Telebot)
perl(Telebot::Command::bot)
perl(Telebot::Command::bot::generate)
perl(Telebot::Controller::Tg)
perl(Telebot::Handler)
perl(Telebot::Handler::CallbackQuery)
perl(Telebot::Handler::ChannelPost)
perl(Telebot::Handler::ChatJoinRequest)
perl(Telebot::Handler::ChatMember)
perl(Telebot::Handler::ChosenInlineResult)
perl(Telebot::Handler::EditedChannelPost)
perl(Telebot::Handler::EditedMessage)
perl(Telebot::Handler::InlineQuery)
perl(Telebot::Handler::Message)
perl(Telebot::Handler::MyChatMember)
perl(Telebot::Handler::Poll)
perl(Telebot::Handler::PollAnswer)
perl(Telebot::Handler::PreCheckoutQuery)
perl(Telebot::Handler::ShippingQuery)
perl(Telebot::Handler::Update)
perl(Telebot::HelloTelegram)
perl(Telebot::Plugin::DB)
perl(Telebot::Plugin::Hooks)
perl(Telebot::Plugin::Telegram)
perl(Telebot::Plugin::Telegram::UI)
perl(Telebot::Plugin::Utils)
perl(Telebot::Task::Update)
perl(Telebot::Task::UpdateField)
perl-Telebot

Requires :
/usr/bin/perl
perl(:MODULE_COMPAT_5.26.1)
perl(Minion) >= 10.15
perl(Mojo::Pg) >= 4.23
perl(Mojolicious) >= 9.0
perl(YAML::XS) >= 0.67
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/bin/telebot
/usr/lib/perl5/vendor_perl/5.26.1/Telebot
/usr/lib/perl5/vendor_perl/5.26.1/Telebot.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot.pod
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Command
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Command/bot
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Command/bot.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Command/bot/generate.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Controller
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Controller/Tg.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/CallbackQuery.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/ChannelPost.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/ChatJoinRequest.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/ChatMember.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/ChosenInlineResult.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/EditedChannelPost.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/EditedMessage.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/InlineQuery.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/Message.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/MyChatMember.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/Poll.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/PollAnswer.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/PreCheckoutQuery.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/ShippingQuery.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Handler/Update.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/HelloTelegram.pm
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Plugin
/usr/lib/perl5/vendor_perl/5.26.1/Telebot/Plugin/DB.pm
There is 43 files more in these RPM.

 
ICM