NAME
Telebot::Handler::MyChatMember - Base class for telegram update part my_chat_member handler
SYNOPSIS
use Telebot::Handler::MyChatMember;
my $handler = Telebot::Handler::MyChatMember->new(
app => $app,
payload => {
from => {
id => 999,
is_bot => \0,
first_name => 'Vladimir',
last_name => 'Lenin',
},
date => 1642266220,
chat => {
id => 444,
type => 'channel',
title => 'XXVII',
},
old_chat_member => {
status => 'member',
user => {
id => 999,
is_bot => \0,
first_name => 'Vladimir',
last_name => 'Lenin',
},
},
new_chat_member => {
status => 'administrator',
user => {
id => 999,
is_bot => \0,
first_name => 'Vladimir',
last_name => 'Lenin',
},
},
},
update_id => 555,
);
$handler->run();
DESCRIPTION
Telebot::Handler::MyChatMember is the base and default class for my_chat_member handler. You can create your own handler in Handler/MyChatMember.pm
ATTRIBUTES
Telebot::Handler::MyChatMember inherits all attributes from Telebot::Handler.
METHODS
Telebot::Handler::MyChatMember inherits all methods from Telebot::Handler.
run
$handler->run;
This method is overloaded in inheritted classes and called for processing telegram update my_chat_member. If not overloaded it dumps my_chat_member.
COPYRIGHT AND LICENSE
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.
SEE ALSO
https://github.com/igorlobanov/telebot, Mojolicious::Guides, https://mojolicious.org, https://core.telegram.org/bots/api#message.