Search Results for

    Show / Hide Table of Contents

    Interface IStateHolder

    The service that used for holding long langword_csharp_and langword_csharp_string keypairs for memorize states of chats

    Namespace: TelegramModularFramework.Services.State
    Assembly: TelegramModularFramework.dll
    Syntax
    public interface IStateHolder

    Methods

    | Improve this Doc View Source

    GetState(Int64)

    Retrieves previously set state

    Declaration
    Task<string> GetState(long userId)
    Parameters
    Type Name Description
    System.Int64 userId

    Number represents user

    Returns
    Type Description
    Task<System.String>

    Nullable string state

    | Improve this Doc View Source

    SetState(Int64, String)

    Sets state value for user

    Declaration
    Task SetState(long userId, string state)
    Parameters
    Type Name Description
    System.Int64 userId

    Number represents user

    System.String state

    String value to store

    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top
    TelegramModularFramework (c) 2022-2022
    ☀
    ☾