NAME
Telebot::Task::Update - Minion job for processing update.
SYNOPSIS
use Telebot::Task::Update;
$app->minion->add_task(update => 'Telebot::Task::Update');
$app->minion->enqueue(update => [$payload]);
DESCRIPTION
Telebot::Task::Update is the task for processing incoming telegram update. This task is executed if app have handler for update.
ATTRIBUTES
Telebot::Task::Update inherits all attributes from Minion::Job.
METHODS
Telebot::Task::Update inherits all methods from Minion::Job.
run
$job->run($payload);
This is overloaded method which creates instance of update handler and call handler's run with payload. After executing handler, task enqueues tasks for parts of update with this part 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.