NAME
Telebot::Handler::ShippingQuery - Base class for telegram update part shipping_query handler
SYNOPSIS
use Telebot::Handler::ShippingQuery;
my $handler = Telebot::Handler::ShippingQuery->new(
app => $app,
payload => {
id => 777,
from => {
id => 999,
is_bot => \0,
first_name => 'Vladimir',
last_name => 'Lenin',
},
date => 1642266220,
invoice_payload => 'Invoice#12345',
shipping_address => {
country_code => 'RU',
city => 'Vyborg',
street_line1 => 'Shalash',
post_code => '12345',
},
},
update_id => 555,
);
$handler->run();
DESCRIPTION
Telebot::Handler::ShippingQuery is the base and default class for shipping_query handler. You can create your own handler in Handler/ShippingQuery.pm
ATTRIBUTES
Telebot::Handler::ShippingQuery inherits all attributes from Telebot::Handler.
METHODS
Telebot::Handler::ShippingQuery inherits all methods from Telebot::Handler.
run
$handler->run;
This method is overloaded in inheritted classes and called for processing telegram update shipping_query. If not overloaded it dumps shipping_query.
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#shippingquery.