Function showWarningNotice

  • Shows a warning notice in a bubble to the user.

    Parameters

    Returns Promise<NoticeBubbleResult>

    Example

    await showWarningNotice(ctx, {
    title: 'Choosing random book',
    description: 'Picking a book on Amazon based on preferred genre.',
    subtitle: t('warning.subtitle'),
    text: t('warning.text'),
    buttons: [{
    text: 'Proceed',
    value: 'ok',
    }],
    });

    Example

    await showWarningNotice(ctx,{
    title: 'Filling Form',
    description: 'This automation will help fill the form with the needed information.',
    icon: 'close-circle-outline',
    iconColor: '#color',
    subtitle: '#subtitle',
    text: 'Warning: Make sure that information that was filled is correct before proceeding to the next step',
    buttons: [{
    value: 'ok',
    text: 'Proceed',
    disabled: false,
    }],
    });

Generated using TypeDoc