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 SourceGetState(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 |
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 |