NAME

Telebot::Handler::ChosenInlineResult - Base class for telegram update part chosen_inline_result handler

SYNOPSIS

use Telebot::Handler::ChosenInlineResult;
my $handler = Telebot::Handler::ChosenInlineResult->new(
    app => $app,
    payload => {
        result_id => 777,
        from => {
            id => 999,
            is_bot => \0,
            first_name => 'Vladimir',
            last_name => 'Lenin',
        },
        query => 'That is the question',
    },
    update_id => 555,
);
$handler->run();

DESCRIPTION

Telebot::Handler::ChosenInlineResult is the base and default class for chosen_inline_result handler. You can create your own handler in Handler/ChosenInlineResult.pm

ATTRIBUTES

Telebot::Handler::ChosenInlineResult inherits all attributes from Telebot::Handler.

METHODS

Telebot::Handler::ChosenInlineResult inherits all methods from Telebot::Handler.

run

$handler->run;

This method is overloaded in inheritted classes and called for processing telegram update chosen_inline_result. If not overloaded it dumps chosen_inline_result.

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#choseninlineresult.