umbot
    Preparing search index...

    Interface IBroadcastOptions

    Параметры Bot.broadcast.

    interface IBroadcastOptions {
        onResult?: (
            userId: string | number,
            ok: boolean,
        ) => void | Promise<void>;
    }
    Index
    onResult?: (userId: string | number, ok: boolean) => void | Promise<void>

    Вызывается после каждой отправки: прогресс рассылки, отметка в БД.

    Type Declaration

      • (userId: string | number, ok: boolean): void | Promise<void>
      • Parameters

        • userId: string | number

          Получатель

        • ok: boolean

          true — доставлено, false — нет (причина в логе)

        Returns void | Promise<void>