NAME

Telebot::Task::UpdateField - Minion job for processing part of update.

SYNOPSIS

use Telebot::Task::UpdateField;
$app->minion->add_task(message => 'Telebot::Task::UpdateField');
$app->minion->enqueue(message => [$payload, $update_id]);

DESCRIPTION

Telebot::Task::UpdateField is the task for processing part of incoming telegram update. This task is setup in app for all allowed updates.

ATTRIBUTES

Telebot::Task::UpdateField inherits all attributes from Minion::Job.

METHODS

Telebot::Task::UpdateField inherits all methods from Minion::Job.

run

$job->run($payload, $update_id);

This is overloaded method which determine what part of update must be processed, creates instance of corresponding field handler and call handler's run with payload and update_id.

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.