#nullable enable using System.Threading.Tasks; namespace Kruzya.TelegramBot.Core.Option; /// /// Implements an interaction with storage for options. /// public interface IOptionStorageAdapter { /// /// Loads a saved value (if exists) from storage. /// /// /// public Task LoadValueAsync(IOptionKey key); /// /// Saves a passed value to storage. /// /// The unique chat key /// The serialized value for saving /// public Task SaveValueAsync(IOptionKey key, byte[] value); }