Search Results for

    Show / Hide Table of Contents

    Class PreconditionAttribute

    Inheritance
    System.Object
    PreconditionAttribute
    RequireChatType
    Namespace: TelegramModularFramework.Preconditions
    Assembly: TelegramModularFramework.dll
    Syntax
    public abstract class PreconditionAttribute : Attribute

    Methods

    | Improve this Doc View Source

    CheckPreconditionAsync(ModuleContext, IServiceProvider)

    Declaration
    public abstract Task<PreconditionResult> CheckPreconditionAsync(ModuleContext context, IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    ModuleContext context
    IServiceProvider serviceProvider
    Returns
    Type Description
    Task<PreconditionResult>
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top
    TelegramModularFramework (c) 2022-2022
    ☀
    ☾