Telebot::Handler::ChatJoinRequest - Base class for telegram update part chat_join_request handler
use Telebot::Handler::ChatJoinRequest; my $handler = Telebot::Handler::ChatJoinRequest->new( app => $app, payload => { chat => { id => 444, type => 'channel', title => 'XXVII', }, from => { id => 999, is_bot => \0, first_name => 'Vladimir', last_name => 'Lenin', }, date => 1642266220, }, update_id => 555, ); $handler->run();
Telebot::Handler::ChatJoinRequest is the base and default class for chat_join_request handler. You can create your own handler in Handler/ChatJoinRequest.pm
Telebot::Handler::ChatJoinRequest inherits all attributes from Telebot::Handler.
Telebot::Handler::ChatJoinRequest inherits all methods from Telebot::Handler.
$handler->run;
This method is overloaded in inheritted classes and called for processing telegram update chat_join_request. If not overloaded it dumps chat_join_request.
Copyright (C) 2022, Igor Lobanov. This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
https://github.com/igorlobanov/telebot, Mojolicious::Guides, https://mojolicious.org, https://core.telegram.org/bots/api#chatjoinrequest.
To install Telebot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Telebot
CPAN shell
perl -MCPAN -e shell install Telebot
For more information on module installation, please visit the detailed CPAN module installation guide.