> For the complete documentation index, see [llms.txt](https://prethink.gitbook.io/prtelegrambot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prethink.gitbook.io/prtelegrambot/ru/api/interfeisy/iprtaskrunnersubscriber.md).

# IPRTaskRunnerSubscriber

```csharp
namespace PRTelegramBot.EventBus.Events
{
    /// <summary>
    /// Подписчик раннера фоновой задачи.
    /// </summary>
    public interface IPRTaskRunnerSubscriber : IPRGlobalSubscriber
    {
        /// <summary>
        /// Событие остановки фоновой задачи.
        /// </summary>
        /// <param name="botIds">Идентификаторы ботов.</param>
        /// <param name="taskId">Идентификатор задачи.</param>
        void StopEvent(IEnumerable<long> botIds, Guid taskId);

        /// <summary>
        /// Событие остановки фоновой задачи.
        /// </summary>
        /// <param name="taskId">Идентификатор задачи.</param>
        void StopEvent(Guid taskId);
    }
}

```
